UI_reward.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.ActivityAFuGift
  4. {
  5. public partial class UI_reward
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GComponent m_reward_normal;
  10. public GComponent m_reward_vip1;
  11. public GComponent m_reward_vip2;
  12. public UI_day m_day;
  13. public const string URL = "ui://f3o25i6ljm6ke";
  14. public const string PACKAGE_NAME = "ActivityAFuGift";
  15. public const string RES_NAME = "reward";
  16. private static UI_reward _proxy;
  17. public static UI_reward Create(GObject gObject = null)
  18. {
  19. var ui = new UI_reward();
  20. if(gObject == null)
  21. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  22. else
  23. ui.target = (GComponent)gObject;
  24. ui.Init(ui.target);
  25. return ui;
  26. }
  27. public static UI_reward Proxy(GObject gObject = null)
  28. {
  29. if(_proxy == null)
  30. {
  31. _proxy = new UI_reward();
  32. }
  33. var ui = _proxy;
  34. if(gObject == null)
  35. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  36. else
  37. ui.target = (GComponent)gObject;
  38. ui.Init(ui.target);
  39. return ui;
  40. }
  41. public static void ProxyEnd()
  42. {
  43. if (_proxy != null)
  44. {
  45. _proxy.Dispose();
  46. }
  47. }
  48. public static void ClearProxy()
  49. {
  50. ProxyEnd();
  51. _proxy = null;
  52. }
  53. private void Init(GComponent comp)
  54. {
  55. m_c1 = comp.GetController("c1");
  56. m_reward_normal = (GComponent)comp.GetChild("reward_normal");
  57. m_reward_vip1 = (GComponent)comp.GetChild("reward_vip1");
  58. m_reward_vip2 = (GComponent)comp.GetChild("reward_vip2");
  59. m_day = (UI_day)UI_day.Create(comp.GetChild("day"));
  60. }
  61. public void Dispose(bool disposeTarget = false)
  62. {
  63. m_c1 = null;
  64. m_reward_normal = null;
  65. m_reward_vip1 = null;
  66. m_reward_vip2 = null;
  67. m_day.Dispose();
  68. m_day = null;
  69. if(disposeTarget && target != null)
  70. {
  71. target.RemoveFromParent();
  72. target.Dispose();
  73. }
  74. target = null;
  75. }
  76. }
  77. }