123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- 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 Text _Text_Count;
- public Text Text_Count
- {
- get{
- if (_Text_Count == null)
- {
- _Text_Count = GetUIUnit<Text>("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();
- }
- }
- }
|