using Fort23.Core; using Fort23.UTool; using UnityEngine.UI; using UnityEngine; using System.Collections.Generic; namespace Fort23.Mono { public partial class WidgetItem { #region 自定义数据 private Object _btnClick; public Object btnClick { get{ if (_btnClick == null) { _btnClick = GetUIUnit("btnClick"); } return _btnClick; } } private MyImage _bg; public MyImage bg { get{ if (_bg == null) { _bg = GetUIUnit("bg"); } return _bg; } } private MyImage _icon; public MyImage icon { get{ if (_icon == null) { _icon = GetUIUnit("icon"); } return _icon; } } private Text _Text_Count; public Text Text_Count { get{ if (_Text_Count == null) { _Text_Count = GetUIUnit("Text_Count"); } return _Text_Count; } } private MyImage _Icon_WenHao; public MyImage Icon_WenHao { get{ if (_Icon_WenHao == null) { _Icon_WenHao = GetUIUnit("Icon_WenHao"); } return _Icon_WenHao; } } #endregion 自定义数据结束 public override async CTask SetUIGameObject(GameObject gObjectPoolInterface) { await base.SetUIGameObject(gObjectPoolInterface); Init(); } } }