12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using TMPro;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class EnergyWidget
- {
- #region 自定义数据
- private MyImage _Icon_Energy;
- public MyImage Icon_Energy
- {
- get{
- if (_Icon_Energy == null)
- {
- _Icon_Energy = GetUIUnit<MyImage>("Icon_Energy");
- }
- return _Icon_Energy;
- }
- }
- private TextMeshProUGUI _Text_Count;
- public TextMeshProUGUI Text_Count
- {
- get{
- if (_Text_Count == null)
- {
- _Text_Count = GetUIUnit<TextMeshProUGUI>("Text_Count");
- }
- return _Text_Count;
- }
- }
- private Button _Btn_Coin;
- public Button Btn_Coin
- {
- get{
- if (_Btn_Coin == null)
- {
- _Btn_Coin = GetUIUnit<Button>("Btn_Coin");
- }
- return _Btn_Coin;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|