using Fort23.Core; using Fort23.UTool; using UnityEngine.UI; using UnityEngine; using System.Collections.Generic; namespace Fort23.Mono { public partial class HeroHpWidget { #region 自定义数据 private Image _hp; public Image hp { get{ if (_hp == null) { _hp = GetUIUnit("hp"); } return _hp; } } #endregion 自定义数据结束 public override async CTask SetUIGameObject(GameObject gObjectPoolInterface) { await base.SetUIGameObject(gObjectPoolInterface); Init(); } } }