12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- 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 _heroGrade;
- public Text heroGrade
- {
- get{
- if (_heroGrade == null)
- {
- _heroGrade = GetUIUnit<Text>("heroGrade");
- }
- return _heroGrade;
- }
- }
- private Text _heroName;
- public Text heroName
- {
- get{
- if (_heroName == null)
- {
- _heroName = GetUIUnit<Text>("heroName");
- }
- return _heroName;
- }
- }
- private List<object> _stars;
- public List<object> stars
- {
- get{
- if (_stars == null)
- {
- _stars = GetUIUnit<List<object>>("stars");
- }
- return _stars;
- }
- }
- private MyImage _iconZhiYe;
- public MyImage iconZhiYe
- {
- get{
- if (_iconZhiYe == null)
- {
- _iconZhiYe = GetUIUnit<MyImage>("iconZhiYe");
- }
- return _iconZhiYe;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|