| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 | using Fort23.Core;using Fort23.UTool;using UnityEngine.UI;using UnityEngine;using System.Collections.Generic;using TMPro;namespace Fort23.Mono{	public partial class WidgetHero 	{	  #region 自定义数据 	  private Image _bgImg;	  public Image bgImg	   {	   get{	      if (_bgImg == null)	       {	         _bgImg  = GetUIUnit<Image>("bgImg"); 	       }	      return _bgImg;	     }	   }	  private Image _headIcon;	  public Image headIcon	   {	   get{	      if (_headIcon == null)	       {	         _headIcon  = GetUIUnit<Image>("headIcon"); 	       }	      return _headIcon;	     }	   }	  private List<object> _stars;	  public List<object> stars	   {	   get{	      if (_stars == null)	       {	         _stars  = GetUIUnit<List<object>>("stars"); 	       }	      return _stars;	     }	   }	  private TextMeshProUGUI _lv;	  public TextMeshProUGUI lv	   {	   get{	      if (_lv == null)	       {	         _lv  = GetUIUnit<TextMeshProUGUI>("lv"); 	       }	      return _lv;	     }	   }	  private Image _zhiyeIcon;	  public Image zhiyeIcon	   {	   get{	      if (_zhiyeIcon == null)	       {	         _zhiyeIcon  = GetUIUnit<Image>("zhiyeIcon"); 	       }	      return _zhiyeIcon;	     }	   }	  private Button _btnHero;	  public Button btnHero	   {	   get{	      if (_btnHero == null)	       {	         _btnHero  = GetUIUnit<Button>("btnHero"); 	       }	      return _btnHero;	     }	   }	  #endregion 自定义数据结束 	 public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)	{	 await base.SetUIGameObject(gObjectPoolInterface);	 Init();	}	}}
 |