| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 | using Fort23.Core;using Fort23.UTool;using UnityEngine.UI;using UnityEngine;using System.Collections.Generic;using TMPro;namespace Fort23.Mono{	public partial class MainUIPanel 	{	  #region 自定义数据 	  private List<object> _hero_battle;	  public List<object> hero_battle	   {	   get{	      if (_hero_battle == null)	       {	         _hero_battle  = GetUIUnit<List<object>>("hero_battle"); 	       }	      return _hero_battle;	     }	   }	  private RectTransform _herobag;	  public RectTransform herobag	   {	   get{	      if (_herobag == null)	       {	         _herobag  = GetUIUnit<RectTransform>("herobag"); 	       }	      return _herobag;	     }	   }	  private RectTransform _Icon_Coin;	  public RectTransform Icon_Coin	   {	   get{	      if (_Icon_Coin == null)	       {	         _Icon_Coin  = GetUIUnit<RectTransform>("Icon_Coin"); 	       }	      return _Icon_Coin;	     }	   }	  private RectTransform _expPoint;	  public RectTransform expPoint	   {	   get{	      if (_expPoint == null)	       {	         _expPoint  = GetUIUnit<RectTransform>("expPoint"); 	       }	      return _expPoint;	     }	   }	  private Slider _exp;	  public Slider exp	   {	   get{	      if (_exp == null)	       {	         _exp  = GetUIUnit<Slider>("exp"); 	       }	      return _exp;	     }	   }	  private TextMeshProUGUI _TextExp;	  public TextMeshProUGUI TextExp	   {	   get{	      if (_TextExp == null)	       {	         _TextExp  = GetUIUnit<TextMeshProUGUI>("TextExp"); 	       }	      return _TextExp;	     }	   }	  private TextMeshProUGUI _coinText;	  public TextMeshProUGUI coinText	   {	   get{	      if (_coinText == null)	       {	         _coinText  = GetUIUnit<TextMeshProUGUI>("coinText"); 	       }	      return _coinText;	     }	   }	  private GameObject _Slider_Exp_Process;	  public GameObject Slider_Exp_Process	   {	   get{	      if (_Slider_Exp_Process == null)	       {	         _Slider_Exp_Process  = GetUIUnit<GameObject>("Slider_Exp_Process"); 	       }	      return _Slider_Exp_Process;	     }	   }	  private GameObject _bossHp;	  public GameObject bossHp	   {	   get{	      if (_bossHp == null)	       {	         _bossHp  = GetUIUnit<GameObject>("bossHp"); 	       }	      return _bossHp;	     }	   }	  private Slider _Slider_Hp_Boss;	  public Slider Slider_Hp_Boss	   {	   get{	      if (_Slider_Hp_Boss == null)	       {	         _Slider_Hp_Boss  = GetUIUnit<Slider>("Slider_Hp_Boss"); 	       }	      return _Slider_Hp_Boss;	     }	   }	  private Text _bossName;	  public Text bossName	   {	   get{	      if (_bossName == null)	       {	         _bossName  = GetUIUnit<Text>("bossName"); 	       }	      return _bossName;	     }	   }	  private TextMeshProUGUI _bossHpText;	  public TextMeshProUGUI bossHpText	   {	   get{	      if (_bossHpText == null)	       {	         _bossHpText  = GetUIUnit<TextMeshProUGUI>("bossHpText"); 	       }	      return _bossHpText;	     }	   }	  private TextMeshProUGUI _txtCoin;	  public TextMeshProUGUI txtCoin	   {	   get{	      if (_txtCoin == null)	       {	         _txtCoin  = GetUIUnit<TextMeshProUGUI>("txtCoin"); 	       }	      return _txtCoin;	     }	   }	  private TextMeshProUGUI _txtDiamond;	  public TextMeshProUGUI txtDiamond	   {	   get{	      if (_txtDiamond == null)	       {	         _txtDiamond  = GetUIUnit<TextMeshProUGUI>("txtDiamond"); 	       }	      return _txtDiamond;	     }	   }	  private TextMeshProUGUI _txtHeroExp;	  public TextMeshProUGUI txtHeroExp	   {	   get{	      if (_txtHeroExp == null)	       {	         _txtHeroExp  = GetUIUnit<TextMeshProUGUI>("txtHeroExp"); 	       }	      return _txtHeroExp;	     }	   }	  private GameObject _fx_ui_coin;	  public GameObject fx_ui_coin	   {	   get{	      if (_fx_ui_coin == null)	       {	         _fx_ui_coin  = GetUIUnit<GameObject>("fx_ui_coin"); 	       }	      return _fx_ui_coin;	     }	   }	  private GameObject _fx_ui_exp;	  public GameObject fx_ui_exp	   {	   get{	      if (_fx_ui_exp == null)	       {	         _fx_ui_exp  = GetUIUnit<GameObject>("fx_ui_exp"); 	       }	      return _fx_ui_exp;	     }	   }	  #endregion 自定义数据结束 	 public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)	{	 await base.SetUIGameObject(gObjectPoolInterface);	 Init();	}	}}
 |