using Fort23.Core; using Fort23.UTool; using UnityEngine.UI; using UnityEngine; using System.Collections.Generic; namespace Fort23.Mono { public partial class HeroHpWidget { #region 自定义数据 private MyImage _hp; public MyImage hp { get{ if (_hp == null) { _hp = GetUIUnit("hp"); } return _hp; } } private GameObject _jy; public GameObject jy { get{ if (_jy == null) { _jy = GetUIUnit("jy"); } return _jy; } } private RectTransform _bg; public RectTransform bg { get{ if (_bg == null) { _bg = GetUIUnit("bg"); } return _bg; } } private GameObject _ShieldsRoot; public GameObject ShieldsRoot { get{ if (_ShieldsRoot == null) { _ShieldsRoot = GetUIUnit("ShieldsRoot"); } return _ShieldsRoot; } } private MyImage _shield; public MyImage shield { get{ if (_shield == null) { _shield = GetUIUnit("shield"); } return _shield; } } private RectTransform _buffRoot; public RectTransform buffRoot { get{ if (_buffRoot == null) { _buffRoot = GetUIUnit("buffRoot"); } return _buffRoot; } } #endregion 自定义数据结束 public override async CTask SetUIGameObject(GameObject gObjectPoolInterface) { await base.SetUIGameObject(gObjectPoolInterface); Init(); } } }