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 MyImage _iconHero;
- public MyImage iconHero
- {
- get{
- if (_iconHero == null)
- {
- _iconHero = GetUIUnit<MyImage>("iconHero");
- }
- return _iconHero;
- }
- }
- 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 MyImage _iconZhiYe;
- public MyImage iconZhiYe
- {
- get{
- if (_iconZhiYe == null)
- {
- _iconZhiYe = GetUIUnit<MyImage>("iconZhiYe");
- }
- return _iconZhiYe;
- }
- }
- 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();
- }
- }
- }
|