UI_GameStartUI.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.MiniGame
  4. {
  5. public partial class UI_GameStartUI
  6. {
  7. public GComponent target;
  8. public GLoader m_bg;
  9. public GLoader m_btnBack;
  10. public GLoader m_rewardBtn;
  11. public GLoader m_shopBtn;
  12. public GLoader m_ticket;
  13. public GLoader m_addIcon;
  14. public GTextField m_ticketNum;
  15. public GLoader m_game1;
  16. public GGraph m_effectIcon1;
  17. public GGraph m_effectText1;
  18. public GLoader m_tipsOne;
  19. public GLoader m_needIcon1;
  20. public GTextField m_needNum1;
  21. public GLoader m_game2;
  22. public GGraph m_effectIcon2;
  23. public GGraph m_effectText2;
  24. public GLoader m_tipsTwo;
  25. public GLoader m_needIcon2;
  26. public GTextField m_needNum2;
  27. public const string URL = "ui://wgkh30qjlw8c21";
  28. public const string PACKAGE_NAME = "MiniGame";
  29. public const string RES_NAME = "GameStartUI";
  30. private static UI_GameStartUI _proxy;
  31. public static UI_GameStartUI Create(GObject gObject = null)
  32. {
  33. var ui = new UI_GameStartUI();
  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 UI_GameStartUI Proxy(GObject gObject = null)
  42. {
  43. if(_proxy == null)
  44. {
  45. _proxy = new UI_GameStartUI();
  46. }
  47. var ui = _proxy;
  48. if(gObject == null)
  49. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  50. else
  51. ui.target = (GComponent)gObject;
  52. ui.Init(ui.target);
  53. return ui;
  54. }
  55. public static void ProxyEnd()
  56. {
  57. if (_proxy != null)
  58. {
  59. _proxy.Dispose();
  60. }
  61. }
  62. public static void ClearProxy()
  63. {
  64. ProxyEnd();
  65. _proxy = null;
  66. }
  67. private void Init(GComponent comp)
  68. {
  69. m_bg = (GLoader)comp.GetChild("bg");
  70. m_btnBack = (GLoader)comp.GetChild("btnBack");
  71. m_rewardBtn = (GLoader)comp.GetChild("rewardBtn");
  72. m_shopBtn = (GLoader)comp.GetChild("shopBtn");
  73. m_ticket = (GLoader)comp.GetChild("ticket");
  74. m_addIcon = (GLoader)comp.GetChild("addIcon");
  75. m_ticketNum = (GTextField)comp.GetChild("ticketNum");
  76. m_game1 = (GLoader)comp.GetChild("game1");
  77. m_effectIcon1 = (GGraph)comp.GetChild("effectIcon1");
  78. m_effectText1 = (GGraph)comp.GetChild("effectText1");
  79. m_tipsOne = (GLoader)comp.GetChild("tipsOne");
  80. m_needIcon1 = (GLoader)comp.GetChild("needIcon1");
  81. m_needNum1 = (GTextField)comp.GetChild("needNum1");
  82. m_game2 = (GLoader)comp.GetChild("game2");
  83. m_effectIcon2 = (GGraph)comp.GetChild("effectIcon2");
  84. m_effectText2 = (GGraph)comp.GetChild("effectText2");
  85. m_tipsTwo = (GLoader)comp.GetChild("tipsTwo");
  86. m_needIcon2 = (GLoader)comp.GetChild("needIcon2");
  87. m_needNum2 = (GTextField)comp.GetChild("needNum2");
  88. }
  89. public void Dispose(bool disposeTarget = false)
  90. {
  91. m_bg = null;
  92. m_btnBack = null;
  93. m_rewardBtn = null;
  94. m_shopBtn = null;
  95. m_ticket = null;
  96. m_addIcon = null;
  97. m_ticketNum = null;
  98. m_game1 = null;
  99. m_effectIcon1 = null;
  100. m_effectText1 = null;
  101. m_tipsOne = null;
  102. m_needIcon1 = null;
  103. m_needNum1 = null;
  104. m_game2 = null;
  105. m_effectIcon2 = null;
  106. m_effectText2 = null;
  107. m_tipsTwo = null;
  108. m_needIcon2 = null;
  109. m_needNum2 = null;
  110. if(disposeTarget && target != null)
  111. {
  112. target.RemoveFromParent();
  113. target.Dispose();
  114. }
  115. target = null;
  116. }
  117. }
  118. }