1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- 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;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|