| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 | 
							- 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;
 
- 	     }
 
- 	   }
 
- 	  private Text _playerLevel;
 
- 	  public Text playerLevel
 
- 	   {
 
- 	   get{
 
- 	      if (_playerLevel == null)
 
- 	       {
 
- 	         _playerLevel  = GetUIUnit<Text>("playerLevel"); 
 
- 	       }
 
- 	      return _playerLevel;
 
- 	     }
 
- 	   }
 
- 	  #endregion 自定义数据结束 
 
- 	 public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
 
- 	{
 
- 	 await base.SetUIGameObject(gObjectPoolInterface);
 
- 	 Init();
 
- 	}
 
- 	}
 
- }
 
 
  |