123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- 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<MyImage>("hp");
- }
- return _hp;
- }
- }
- private GameObject _jy;
- public GameObject jy
- {
- get{
- if (_jy == null)
- {
- _jy = GetUIUnit<GameObject>("jy");
- }
- return _jy;
- }
- }
- private RectTransform _bg;
- public RectTransform bg
- {
- get{
- if (_bg == null)
- {
- _bg = GetUIUnit<RectTransform>("bg");
- }
- return _bg;
- }
- }
- private GameObject _ShieldsRoot;
- public GameObject ShieldsRoot
- {
- get{
- if (_ShieldsRoot == null)
- {
- _ShieldsRoot = GetUIUnit<GameObject>("ShieldsRoot");
- }
- return _ShieldsRoot;
- }
- }
- private MyImage _shield;
- public MyImage shield
- {
- get{
- if (_shield == null)
- {
- _shield = GetUIUnit<MyImage>("shield");
- }
- return _shield;
- }
- }
- private RectTransform _buffRoot;
- public RectTransform buffRoot
- {
- get{
- if (_buffRoot == null)
- {
- _buffRoot = GetUIUnit<RectTransform>("buffRoot");
- }
- return _buffRoot;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|