using Fort23.Core; using Fort23.UTool; using UnityEngine.UI; using UnityEngine; using System.Collections.Generic; namespace Fort23.Mono { public partial class BossHpWidget { #region 自定义数据 private GameObject _HeroHpWidget; public GameObject HeroHpWidget { get{ if (_HeroHpWidget == null) { _HeroHpWidget = GetUIUnit("HeroHpWidget"); } return _HeroHpWidget; } } private GameObject _gf_widget; public GameObject gf_widget { get{ if (_gf_widget == null) { _gf_widget = GetUIUnit("gf_widget"); } return _gf_widget; } } private RectTransform _SkillRoot; public RectTransform SkillRoot { get{ if (_SkillRoot == null) { _SkillRoot = GetUIUnit("SkillRoot"); } return _SkillRoot; } } private GameObject _MagicWeaponWidget; public GameObject MagicWeaponWidget { get{ if (_MagicWeaponWidget == null) { _MagicWeaponWidget = GetUIUnit("MagicWeaponWidget"); } return _MagicWeaponWidget; } } private RectTransform _FaBaoRoot; public RectTransform FaBaoRoot { get{ if (_FaBaoRoot == null) { _FaBaoRoot = GetUIUnit("FaBaoRoot"); } return _FaBaoRoot; } } private MyImage _currUseSkillIcon; public MyImage currUseSkillIcon { get{ if (_currUseSkillIcon == null) { _currUseSkillIcon = GetUIUnit("currUseSkillIcon"); } return _currUseSkillIcon; } } #endregion 自定义数据结束 public override async CTask SetUIGameObject(GameObject gObjectPoolInterface) { await base.SetUIGameObject(gObjectPoolInterface); Init(); } } }