HeroUpTxtEftData.cs 637 B

12345678910111213141516171819202122232425262728293031
  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 HeroUpTxtEft
  10. {
  11. #region 自定义数据
  12. private TextMeshProUGUI _txtEft;
  13. public TextMeshProUGUI txtEft
  14. {
  15. get{
  16. if (_txtEft == null)
  17. {
  18. _txtEft = GetUIUnit<TextMeshProUGUI>("txtEft");
  19. }
  20. return _txtEft;
  21. }
  22. }
  23. #endregion 自定义数据结束
  24. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  25. {
  26. await base.SetUIGameObject(gObjectPoolInterface);
  27. Init();
  28. }
  29. }
  30. }