BoxPanelData.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine.UI;
  4. using UnityEngine;
  5. using System.Collections.Generic;
  6. namespace Fort23.Mono
  7. {
  8. public partial class BoxPanel
  9. {
  10. #region 自定义数据
  11. private Button _bg;
  12. public Button bg
  13. {
  14. get{
  15. if (_bg == null)
  16. {
  17. _bg = GetUIUnit<Button>("bg");
  18. }
  19. return _bg;
  20. }
  21. }
  22. private Button _oneButton;
  23. public Button oneButton
  24. {
  25. get{
  26. if (_oneButton == null)
  27. {
  28. _oneButton = GetUIUnit<Button>("oneButton");
  29. }
  30. return _oneButton;
  31. }
  32. }
  33. private Button _tenButton;
  34. public Button tenButton
  35. {
  36. get{
  37. if (_tenButton == null)
  38. {
  39. _tenButton = GetUIUnit<Button>("tenButton");
  40. }
  41. return _tenButton;
  42. }
  43. }
  44. private Text _tenCion;
  45. public Text tenCion
  46. {
  47. get{
  48. if (_tenCion == null)
  49. {
  50. _tenCion = GetUIUnit<Text>("tenCion");
  51. }
  52. return _tenCion;
  53. }
  54. }
  55. private Text _onCion;
  56. public Text onCion
  57. {
  58. get{
  59. if (_onCion == null)
  60. {
  61. _onCion = GetUIUnit<Text>("onCion");
  62. }
  63. return _onCion;
  64. }
  65. }
  66. private Object _Btn_AdsFree;
  67. public Object Btn_AdsFree
  68. {
  69. get{
  70. if (_Btn_AdsFree == null)
  71. {
  72. _Btn_AdsFree = GetUIUnit<Object>("Btn_AdsFree");
  73. }
  74. return _Btn_AdsFree;
  75. }
  76. }
  77. private MyImage _icon_Oneitem;
  78. public MyImage icon_Oneitem
  79. {
  80. get{
  81. if (_icon_Oneitem == null)
  82. {
  83. _icon_Oneitem = GetUIUnit<MyImage>("icon_Oneitem");
  84. }
  85. return _icon_Oneitem;
  86. }
  87. }
  88. private MyImage _Icon_TenItem;
  89. public MyImage Icon_TenItem
  90. {
  91. get{
  92. if (_Icon_TenItem == null)
  93. {
  94. _Icon_TenItem = GetUIUnit<MyImage>("Icon_TenItem");
  95. }
  96. return _Icon_TenItem;
  97. }
  98. }
  99. private Text _Text_TenFree;
  100. public Text Text_TenFree
  101. {
  102. get{
  103. if (_Text_TenFree == null)
  104. {
  105. _Text_TenFree = GetUIUnit<Text>("Text_TenFree");
  106. }
  107. return _Text_TenFree;
  108. }
  109. }
  110. private Text _Text_OneFree;
  111. public Text Text_OneFree
  112. {
  113. get{
  114. if (_Text_OneFree == null)
  115. {
  116. _Text_OneFree = GetUIUnit<Text>("Text_OneFree");
  117. }
  118. return _Text_OneFree;
  119. }
  120. }
  121. private Button _Btn_Score;
  122. public Button Btn_Score
  123. {
  124. get{
  125. if (_Btn_Score == null)
  126. {
  127. _Btn_Score = GetUIUnit<Button>("Btn_Score");
  128. }
  129. return _Btn_Score;
  130. }
  131. }
  132. private Button _Btn_Close;
  133. public Button Btn_Close
  134. {
  135. get{
  136. if (_Btn_Close == null)
  137. {
  138. _Btn_Close = GetUIUnit<Button>("Btn_Close");
  139. }
  140. return _Btn_Close;
  141. }
  142. }
  143. private Slider _Slider_Count;
  144. public Slider Slider_Count
  145. {
  146. get{
  147. if (_Slider_Count == null)
  148. {
  149. _Slider_Count = GetUIUnit<Slider>("Slider_Count");
  150. }
  151. return _Slider_Count;
  152. }
  153. }
  154. private Text _Text_Count;
  155. public Text Text_Count
  156. {
  157. get{
  158. if (_Text_Count == null)
  159. {
  160. _Text_Count = GetUIUnit<Text>("Text_Count");
  161. }
  162. return _Text_Count;
  163. }
  164. }
  165. #endregion 自定义数据结束
  166. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  167. {
  168. await base.SetUIGameObject(gObjectPoolInterface);
  169. Init();
  170. }
  171. }
  172. }