CTT/Unity/Assets/HotfixView/UI/NetLoading/NetLoadingUIEvent.cs

28 lines
685 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using ET;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ET
{
[UIEvent(FUIPackage.Common_NetLoading)]
public class NetLoadingUIEvent : AUIEvent
{
public override async ETTask<FUI> OnCreate(FUIComponent fuiComponent)
{
if (!(FUIComponent.Instance.Get(FUIPackage.Common_NetLoading) is FUI_NetLoading ui))
{
ui = await FUI_NetLoading.CreateInstanceAsync(fuiComponent);
ui.Name = FUIPackage.Common_NetLoading;
}
return ui;
}
public override void OnRemove(FUIComponent fuiComponent)
{
}
}
}