CombatHeroDiePanelData.cs 881 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine.UI;
  4. using UnityEngine;
  5. using System.Collections.Generic;
  6. using TMPro;
  7. namespace Fort23.Mono
  8. {
  9. public partial class CombatHeroDiePanel
  10. {
  11. #region 自定义数据
  12. private TextMeshProUGUI _clickTime;
  13. public TextMeshProUGUI clickTime
  14. {
  15. get{
  16. if (_clickTime == null)
  17. {
  18. _clickTime = GetUIUnit<TextMeshProUGUI>("clickTime");
  19. }
  20. return _clickTime;
  21. }
  22. }
  23. private Button _Button_ok;
  24. public Button Button_ok
  25. {
  26. get{
  27. if (_Button_ok == null)
  28. {
  29. _Button_ok = GetUIUnit<Button>("Button_ok");
  30. }
  31. return _Button_ok;
  32. }
  33. }
  34. #endregion 自定义数据结束
  35. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  36. {
  37. await base.SetUIGameObject(gObjectPoolInterface);
  38. Init();
  39. }
  40. }
  41. }