1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class HeroDetailPanel
- {
- #region 自定义数据
- private Button _btnBack;
- public Button btnBack
- {
- get{
- if (_btnBack == null)
- {
- _btnBack = GetUIUnit<Button>("btnBack");
- }
- return _btnBack;
- }
- }
- private Text _textGrade;
- public Text textGrade
- {
- get{
- if (_textGrade == null)
- {
- _textGrade = GetUIUnit<Text>("textGrade");
- }
- return _textGrade;
- }
- }
- private Image _iconZhiYe;
- public Image iconZhiYe
- {
- get{
- if (_iconZhiYe == null)
- {
- _iconZhiYe = GetUIUnit<Image>("iconZhiYe");
- }
- return _iconZhiYe;
- }
- }
- private Text _txtName;
- public Text txtName
- {
- get{
- if (_txtName == null)
- {
- _txtName = GetUIUnit<Text>("txtName");
- }
- return _txtName;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|