TowerLevelWidgetData.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine.UI;
  4. using UnityEngine;
  5. using System.Collections.Generic;
  6. using Coffee.UIExtensions;
  7. namespace Fort23.Mono
  8. {
  9. public partial class TowerLevelWidget
  10. {
  11. #region 自定义数据
  12. private Text _Text_Name;
  13. public Text Text_Name
  14. {
  15. get{
  16. if (_Text_Name == null)
  17. {
  18. _Text_Name = GetUIUnit<Text>("Text_Name");
  19. }
  20. return _Text_Name;
  21. }
  22. }
  23. private Button _Btn_BigSecretAreaWidget;
  24. public Button Btn_BigSecretAreaWidget
  25. {
  26. get{
  27. if (_Btn_BigSecretAreaWidget == null)
  28. {
  29. _Btn_BigSecretAreaWidget = GetUIUnit<Button>("Btn_BigSecretAreaWidget");
  30. }
  31. return _Btn_BigSecretAreaWidget;
  32. }
  33. }
  34. private CustomStateController _Csc;
  35. public CustomStateController Csc
  36. {
  37. get{
  38. if (_Csc == null)
  39. {
  40. _Csc = GetUIUnit<CustomStateController>("Csc");
  41. }
  42. return _Csc;
  43. }
  44. }
  45. private Button _Btn_GetWard;
  46. public Button Btn_GetWard
  47. {
  48. get{
  49. if (_Btn_GetWard == null)
  50. {
  51. _Btn_GetWard = GetUIUnit<Button>("Btn_GetWard");
  52. }
  53. return _Btn_GetWard;
  54. }
  55. }
  56. private GameObject _Check;
  57. public GameObject Check
  58. {
  59. get{
  60. if (_Check == null)
  61. {
  62. _Check = GetUIUnit<GameObject>("Check");
  63. }
  64. return _Check;
  65. }
  66. }
  67. private RectTransform _dec_Hexagon;
  68. public RectTransform dec_Hexagon
  69. {
  70. get{
  71. if (_dec_Hexagon == null)
  72. {
  73. _dec_Hexagon = GetUIUnit<RectTransform>("dec_Hexagon");
  74. }
  75. return _dec_Hexagon;
  76. }
  77. }
  78. private MyImage _Icon_Item;
  79. public MyImage Icon_Item
  80. {
  81. get{
  82. if (_Icon_Item == null)
  83. {
  84. _Icon_Item = GetUIUnit<MyImage>("Icon_Item");
  85. }
  86. return _Icon_Item;
  87. }
  88. }
  89. private Text _Text_Num;
  90. public Text Text_Num
  91. {
  92. get{
  93. if (_Text_Num == null)
  94. {
  95. _Text_Num = GetUIUnit<Text>("Text_Num");
  96. }
  97. return _Text_Num;
  98. }
  99. }
  100. private GameObject _GetWard;
  101. public GameObject GetWard
  102. {
  103. get{
  104. if (_GetWard == null)
  105. {
  106. _GetWard = GetUIUnit<GameObject>("GetWard");
  107. }
  108. return _GetWard;
  109. }
  110. }
  111. private UIParticle _fx_ui_jiangli_loop;
  112. public UIParticle fx_ui_jiangli_loop
  113. {
  114. get{
  115. if (_fx_ui_jiangli_loop == null)
  116. {
  117. _fx_ui_jiangli_loop = GetUIUnit<UIParticle>("fx_ui_jiangli_loop");
  118. }
  119. return _fx_ui_jiangli_loop;
  120. }
  121. }
  122. #endregion 自定义数据结束
  123. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  124. {
  125. await base.SetUIGameObject(gObjectPoolInterface);
  126. Init();
  127. }
  128. }
  129. }