using Fort23.Core; using Fort23.UTool; using UnityEngine.UI; using UnityEngine; using System.Collections.Generic; namespace Fort23.Mono { public partial class SkillWidget { #region 自定义数据 private MyImage _icon; public MyImage icon { get{ if (_icon == null) { _icon = GetUIUnit("icon"); } return _icon; } } private GameObject _Icon_Marsk; public GameObject Icon_Marsk { get{ if (_Icon_Marsk == null) { _Icon_Marsk = GetUIUnit("Icon_Marsk"); } return _Icon_Marsk; } } private Text _Text_SkillName; public Text Text_SkillName { get{ if (_Text_SkillName == null) { _Text_SkillName = GetUIUnit("Text_SkillName"); } return _Text_SkillName; } } private Text _Text_Level; public Text Text_Level { get{ if (_Text_Level == null) { _Text_Level = GetUIUnit("Text_Level"); } return _Text_Level; } } private Text _Text_SkillType; public Text Text_SkillType { get{ if (_Text_SkillType == null) { _Text_SkillType = GetUIUnit("Text_SkillType"); } return _Text_SkillType; } } private List _StarRoot; public List StarRoot { get{ if (_StarRoot == null) { _StarRoot = GetUIUnit>("StarRoot"); } return _StarRoot; } } private RectTransform _InfoPos; public RectTransform InfoPos { get{ if (_InfoPos == null) { _InfoPos = GetUIUnit("InfoPos"); } return _InfoPos; } } #endregion 自定义数据结束 public override async CTask SetUIGameObject(GameObject gObjectPoolInterface) { await base.SetUIGameObject(gObjectPoolInterface); Init(); } } }