123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- using TMPro;
- namespace Fort23.Mono
- {
- public partial class WidgetIconSkill
- {
- #region 自定义数据
- private MyImage _iconSkill;
- public MyImage iconSkill
- {
- get{
- if (_iconSkill == null)
- {
- _iconSkill = GetUIUnit<MyImage>("iconSkill");
- }
- return _iconSkill;
- }
- }
- private TextMeshProUGUI _txtLv;
- public TextMeshProUGUI txtLv
- {
- get{
- if (_txtLv == null)
- {
- _txtLv = GetUIUnit<TextMeshProUGUI>("txtLv");
- }
- return _txtLv;
- }
- }
- private GameObject _unLockObj;
- public GameObject unLockObj
- {
- get{
- if (_unLockObj == null)
- {
- _unLockObj = GetUIUnit<GameObject>("unLockObj");
- }
- return _unLockObj;
- }
- }
- private GameObject _lockObj;
- public GameObject lockObj
- {
- get{
- if (_lockObj == null)
- {
- _lockObj = GetUIUnit<GameObject>("lockObj");
- }
- return _lockObj;
- }
- }
- private List<object> _stars;
- public List<object> stars
- {
- get{
- if (_stars == null)
- {
- _stars = GetUIUnit<List<object>>("stars");
- }
- return _stars;
- }
- }
- private GameObject _lockImgObj;
- public GameObject lockImgObj
- {
- get{
- if (_lockImgObj == null)
- {
- _lockImgObj = GetUIUnit<GameObject>("lockImgObj");
- }
- return _lockImgObj;
- }
- }
- private Button _btnSkillDetail;
- public Button btnSkillDetail
- {
- get{
- if (_btnSkillDetail == null)
- {
- _btnSkillDetail = GetUIUnit<Button>("btnSkillDetail");
- }
- return _btnSkillDetail;
- }
- }
- private MyImage _imgBorder;
- public MyImage imgBorder
- {
- get{
- if (_imgBorder == null)
- {
- _imgBorder = GetUIUnit<MyImage>("imgBorder");
- }
- return _imgBorder;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|