1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class CombatHPPanel
- {
- #region 自定义数据
- private GameObject _HeroHpWidget;
- public GameObject HeroHpWidget
- {
- get{
- if (_HeroHpWidget == null)
- {
- _HeroHpWidget = GetUIUnit<GameObject>("HeroHpWidget");
- }
- return _HeroHpWidget;
- }
- }
- private RectTransform _TargetFocus;
- public RectTransform TargetFocus
- {
- get{
- if (_TargetFocus == null)
- {
- _TargetFocus = GetUIUnit<RectTransform>("TargetFocus");
- }
- return _TargetFocus;
- }
- }
- private GameObject _DuiPingWidget;
- public GameObject DuiPingWidget
- {
- get{
- if (_DuiPingWidget == null)
- {
- _DuiPingWidget = GetUIUnit<GameObject>("DuiPingWidget");
- }
- return _DuiPingWidget;
- }
- }
- private RectTransform _FbDuiPingRoot;
- public RectTransform FbDuiPingRoot
- {
- get{
- if (_FbDuiPingRoot == null)
- {
- _FbDuiPingRoot = GetUIUnit<RectTransform>("FbDuiPingRoot");
- }
- return _FbDuiPingRoot;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|