using System.Threading.Tasks; using UnityEngine; namespace Fort23.Mono { [UIBinding(prefab = "MainUIPanel" )] public partial class MainUIPanel : UIPanel { private void Init() { } protected override void AddEvent() { } protected override void DelEvent() { } public override void AddButtonEvent() { } private async Task InitBattleHero() { WidgetHero itemHero = await UIManager.Instance.CreateGComponent(null, poolName: "WuGongWidget"); RectTransform rectTransform = hero_battle[0] as RectTransform; } } }