123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- using TMPro;
- namespace Fort23.Mono
- {
- public partial class WidgetItem
- {
- #region 自定义数据
- private Button _btnClick;
- public Button btnClick
- {
- get{
- if (_btnClick == null)
- {
- _btnClick = GetUIUnit<Button>("btnClick");
- }
- return _btnClick;
- }
- }
- private MyImage _bg;
- public MyImage bg
- {
- get{
- if (_bg == null)
- {
- _bg = GetUIUnit<MyImage>("bg");
- }
- return _bg;
- }
- }
- private MyImage _icon;
- public MyImage icon
- {
- get{
- if (_icon == null)
- {
- _icon = GetUIUnit<MyImage>("icon");
- }
- return _icon;
- }
- }
- private TextMeshProUGUI _num;
- public TextMeshProUGUI num
- {
- get{
- if (_num == null)
- {
- _num = GetUIUnit<TextMeshProUGUI>("num");
- }
- return _num;
- }
- }
- private GameObject _numObj;
- public GameObject numObj
- {
- get{
- if (_numObj == null)
- {
- _numObj = GetUIUnit<GameObject>("numObj");
- }
- return _numObj;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|