using Fort23.Core; using Fort23.UTool; using UnityEngine.UI; using UnityEngine; using System.Collections.Generic; namespace Fort23.Mono { public partial class MainUIPanel { #region 自定义数据 private List _hero_battle; public List hero_battle { get{ if (_hero_battle == null) { _hero_battle = GetUIUnit>("hero_battle"); } return _hero_battle; } } private GameObject _Icon_Coin; public GameObject Icon_Coin { get{ if (_Icon_Coin == null) { _Icon_Coin = GetUIUnit("Icon_Coin"); } return _Icon_Coin; } } private GameObject _lingyan; public GameObject lingyan { get{ if (_lingyan == null) { _lingyan = GetUIUnit("lingyan"); } return _lingyan; } } #endregion 自定义数据结束 public override async CTask SetUIGameObject(GameObject gObjectPoolInterface) { await base.SetUIGameObject(gObjectPoolInterface); Init(); } } }