MainUIPanelData.cs 643 B

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