zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/HotfixView/UI/StartSoulUpgradeUI/StartSoulUpgradeUIEvent.cs

26 lines
695 B
C#

using ET;
using System;
using System.Collections.Generic;
namespace ET
{
[UIEvent(FUIPackage.Strength_StartSoulUpgradeUI)]
public class StartSoulUpgradeUIEvent : AUIEvent
{
public override async ETTask<FUI> OnCreate(FUIComponent fuiComponent)
{
if (!(FUIComponent.Instance.Get(FUIPackage.Strength_StartSoulUpgradeUI) is FUI_StartSoulUpgradeUI ui))
{
ui =await FUI_StartSoulUpgradeUI.CreateInstanceAsync(fuiComponent);
ui.Name = FUIPackage.Strength_StartSoulUpgradeUI;
}
return ui;
}
public override void OnRemove(FUIComponent fuiComponent)
{
}
}
}