12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class RewardsPanel
- {
- #region 自定义数据
- private Text _txtlName;
- public Text txtlName
- {
- get{
- if (_txtlName == null)
- {
- _txtlName = GetUIUnit<Text>("txtlName");
- }
- return _txtlName;
- }
- }
- 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 Button _btnDi;
- public Button btnDi
- {
- get{
- if (_btnDi == null)
- {
- _btnDi = GetUIUnit<Button>("btnDi");
- }
- return _btnDi;
- }
- }
- private GameObject _widget;
- public GameObject widget
- {
- get{
- if (_widget == null)
- {
- _widget = GetUIUnit<GameObject>("widget");
- }
- return _widget;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|