123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class SkillKongWidget
- {
- #region 自定义数据
- private MyImage _icon;
- public MyImage icon
- {
- get{
- if (_icon == null)
- {
- _icon = GetUIUnit<MyImage>("icon");
- }
- return _icon;
- }
- }
- private Image _myBg;
- public Image myBg
- {
- get{
- if (_myBg == null)
- {
- _myBg = GetUIUnit<Image>("myBg");
- }
- return _myBg;
- }
- }
- private MyUIButton _myButton;
- public MyUIButton myButton
- {
- get{
- if (_myButton == null)
- {
- _myButton = GetUIUnit<MyUIButton>("myButton");
- }
- return _myButton;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|