TowerLevelWidgetData.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 TowerLevelWidget
  9. {
  10. #region 自定义数据
  11. private Text _Text_Name;
  12. public Text Text_Name
  13. {
  14. get{
  15. if (_Text_Name == null)
  16. {
  17. _Text_Name = GetUIUnit<Text>("Text_Name");
  18. }
  19. return _Text_Name;
  20. }
  21. }
  22. private Button _Btn_BigSecretAreaWidget;
  23. public Button Btn_BigSecretAreaWidget
  24. {
  25. get{
  26. if (_Btn_BigSecretAreaWidget == null)
  27. {
  28. _Btn_BigSecretAreaWidget = GetUIUnit<Button>("Btn_BigSecretAreaWidget");
  29. }
  30. return _Btn_BigSecretAreaWidget;
  31. }
  32. }
  33. private CustomStateController _Csc;
  34. public CustomStateController Csc
  35. {
  36. get{
  37. if (_Csc == null)
  38. {
  39. _Csc = GetUIUnit<CustomStateController>("Csc");
  40. }
  41. return _Csc;
  42. }
  43. }
  44. private Button _Btn_GetWard;
  45. public Button Btn_GetWard
  46. {
  47. get{
  48. if (_Btn_GetWard == null)
  49. {
  50. _Btn_GetWard = GetUIUnit<Button>("Btn_GetWard");
  51. }
  52. return _Btn_GetWard;
  53. }
  54. }
  55. private GameObject _Check;
  56. public GameObject Check
  57. {
  58. get{
  59. if (_Check == null)
  60. {
  61. _Check = GetUIUnit<GameObject>("Check");
  62. }
  63. return _Check;
  64. }
  65. }
  66. private RectTransform _dec_Hexagon;
  67. public RectTransform dec_Hexagon
  68. {
  69. get{
  70. if (_dec_Hexagon == null)
  71. {
  72. _dec_Hexagon = GetUIUnit<RectTransform>("dec_Hexagon");
  73. }
  74. return _dec_Hexagon;
  75. }
  76. }
  77. private CustomStateController _awardCsc;
  78. public CustomStateController awardCsc
  79. {
  80. get{
  81. if (_awardCsc == null)
  82. {
  83. _awardCsc = GetUIUnit<CustomStateController>("awardCsc");
  84. }
  85. return _awardCsc;
  86. }
  87. }
  88. private MyImage _Icon_Item;
  89. public MyImage Icon_Item
  90. {
  91. get{
  92. if (_Icon_Item == null)
  93. {
  94. _Icon_Item = GetUIUnit<MyImage>("Icon_Item");
  95. }
  96. return _Icon_Item;
  97. }
  98. }
  99. private Text _Text_Num;
  100. public Text Text_Num
  101. {
  102. get{
  103. if (_Text_Num == null)
  104. {
  105. _Text_Num = GetUIUnit<Text>("Text_Num");
  106. }
  107. return _Text_Num;
  108. }
  109. }
  110. private CustomStateController _DianianCsc;
  111. public CustomStateController DianianCsc
  112. {
  113. get{
  114. if (_DianianCsc == null)
  115. {
  116. _DianianCsc = GetUIUnit<CustomStateController>("DianianCsc");
  117. }
  118. return _DianianCsc;
  119. }
  120. }
  121. private GameObject _GetWard;
  122. public GameObject GetWard
  123. {
  124. get{
  125. if (_GetWard == null)
  126. {
  127. _GetWard = GetUIUnit<GameObject>("GetWard");
  128. }
  129. return _GetWard;
  130. }
  131. }
  132. #endregion 自定义数据结束
  133. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  134. {
  135. await base.SetUIGameObject(gObjectPoolInterface);
  136. Init();
  137. }
  138. }
  139. }