12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class HeroBagPanel
- {
- #region 自定义数据
- private Button _btnBack;
- public Button btnBack
- {
- get{
- if (_btnBack == null)
- {
- _btnBack = GetUIUnit<Button>("btnBack");
- }
- return _btnBack;
- }
- }
- private Button _btnEquip;
- public Button btnEquip
- {
- get{
- if (_btnEquip == null)
- {
- _btnEquip = GetUIUnit<Button>("btnEquip");
- }
- return _btnEquip;
- }
- }
- private List<object> _mainHeroes;
- public List<object> mainHeroes
- {
- get{
- if (_mainHeroes == null)
- {
- _mainHeroes = GetUIUnit<List<object>>("mainHeroes");
- }
- return _mainHeroes;
- }
- }
- private Text _txtMainLv;
- public Text txtMainLv
- {
- get{
- if (_txtMainLv == null)
- {
- _txtMainLv = GetUIUnit<Text>("txtMainLv");
- }
- return _txtMainLv;
- }
- }
- private GameObject _AlerRed;
- public GameObject AlerRed
- {
- get{
- if (_AlerRed == null)
- {
- _AlerRed = GetUIUnit<GameObject>("AlerRed");
- }
- return _AlerRed;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|