ZhuanPanPanelData.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine.UI;
  4. using UnityEngine;
  5. using System.Collections.Generic;
  6. using Core.UI.UTool.UITween;
  7. namespace Fort23.Mono
  8. {
  9. public partial class ZhuanPanPanel
  10. {
  11. #region 自定义数据
  12. private GameObject _gf_widget;
  13. public GameObject gf_widget
  14. {
  15. get{
  16. if (_gf_widget == null)
  17. {
  18. _gf_widget = GetUIUnit<GameObject>("gf_widget");
  19. }
  20. return _gf_widget;
  21. }
  22. }
  23. private RectTransform _Gf_root;
  24. public RectTransform Gf_root
  25. {
  26. get{
  27. if (_Gf_root == null)
  28. {
  29. _Gf_root = GetUIUnit<RectTransform>("Gf_root");
  30. }
  31. return _Gf_root;
  32. }
  33. }
  34. private UITweenController _jin;
  35. public UITweenController jin
  36. {
  37. get{
  38. if (_jin == null)
  39. {
  40. _jin = GetUIUnit<UITweenController>("jin");
  41. }
  42. return _jin;
  43. }
  44. }
  45. private UITweenController _mu;
  46. public UITweenController mu
  47. {
  48. get{
  49. if (_mu == null)
  50. {
  51. _mu = GetUIUnit<UITweenController>("mu");
  52. }
  53. return _mu;
  54. }
  55. }
  56. private UITweenController _shui;
  57. public UITweenController shui
  58. {
  59. get{
  60. if (_shui == null)
  61. {
  62. _shui = GetUIUnit<UITweenController>("shui");
  63. }
  64. return _shui;
  65. }
  66. }
  67. private UITweenController _huo;
  68. public UITweenController huo
  69. {
  70. get{
  71. if (_huo == null)
  72. {
  73. _huo = GetUIUnit<UITweenController>("huo");
  74. }
  75. return _huo;
  76. }
  77. }
  78. private UITweenController _tu;
  79. public UITweenController tu
  80. {
  81. get{
  82. if (_tu == null)
  83. {
  84. _tu = GetUIUnit<UITweenController>("tu");
  85. }
  86. return _tu;
  87. }
  88. }
  89. private Image _lanLiang;
  90. public Image lanLiang
  91. {
  92. get{
  93. if (_lanLiang == null)
  94. {
  95. _lanLiang = GetUIUnit<Image>("lanLiang");
  96. }
  97. return _lanLiang;
  98. }
  99. }
  100. #endregion 自定义数据结束
  101. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  102. {
  103. await base.SetUIGameObject(gObjectPoolInterface);
  104. Init();
  105. }
  106. }
  107. }