MainUIPanel.cs 680 B

12345678910111213141516171819202122232425262728293031
  1. using System.Threading.Tasks;
  2. using UnityEngine;
  3. namespace Fort23.Mono
  4. {
  5. [UIBinding(prefab = "MainUIPanel" )]
  6. public partial class MainUIPanel : UIPanel
  7. {
  8. private void Init()
  9. {
  10. }
  11. protected override void AddEvent()
  12. {
  13. }
  14. protected override void DelEvent()
  15. {
  16. }
  17. public override void AddButtonEvent()
  18. {
  19. }
  20. private async Task InitBattleHero()
  21. {
  22. WidgetHero itemHero = await UIManager.Instance.CreateGComponent<WidgetHero>(null, poolName: "WuGongWidget");
  23. RectTransform rectTransform = hero_battle[0] as RectTransform;
  24. }
  25. }
  26. }