1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- using TMPro;
- namespace Fort23.Mono
- {
- public partial class OfflineRewardPanel
- {
- #region 自定义数据
- private GameObject _diObj;
- public GameObject diObj
- {
- get{
- if (_diObj == null)
- {
- _diObj = GetUIUnit<GameObject>("diObj");
- }
- return _diObj;
- }
- }
- private RectTransform _itemRoot;
- public RectTransform itemRoot
- {
- get{
- if (_itemRoot == null)
- {
- _itemRoot = GetUIUnit<RectTransform>("itemRoot");
- }
- return _itemRoot;
- }
- }
- private GameObject _widget;
- public GameObject widget
- {
- get{
- if (_widget == null)
- {
- _widget = GetUIUnit<GameObject>("widget");
- }
- return _widget;
- }
- }
- private TextMeshProUGUI _txtOfflineTime;
- public TextMeshProUGUI txtOfflineTime
- {
- get{
- if (_txtOfflineTime == null)
- {
- _txtOfflineTime = GetUIUnit<TextMeshProUGUI>("txtOfflineTime");
- }
- return _txtOfflineTime;
- }
- }
- private TextMeshProUGUI _txtCoin;
- public TextMeshProUGUI txtCoin
- {
- get{
- if (_txtCoin == null)
- {
- _txtCoin = GetUIUnit<TextMeshProUGUI>("txtCoin");
- }
- return _txtCoin;
- }
- }
- private TextMeshProUGUI _txtExp;
- public TextMeshProUGUI txtExp
- {
- get{
- if (_txtExp == null)
- {
- _txtExp = GetUIUnit<TextMeshProUGUI>("txtExp");
- }
- return _txtExp;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|