26 lines
659 B
C#
26 lines
659 B
C#
using ET;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ET
|
|
{
|
|
[UIEvent(FUIPackage.Other_MainStoryAIUI)]
|
|
public class MainStoryAIUIEvent : AUIEvent
|
|
{
|
|
public override async ETTask<FUI> OnCreate(FUIComponent fuiComponent)
|
|
{
|
|
if (!(FUIComponent.Instance.Get(FUIPackage.Other_MainStoryAIUI) is FUI_MainStoryAIUI ui))
|
|
{
|
|
ui =await FUI_MainStoryAIUI.CreateInstanceAsync(fuiComponent);
|
|
ui.Name = FUIPackage.Other_MainStoryAIUI;
|
|
}
|
|
return ui;
|
|
}
|
|
|
|
public override void OnRemove(FUIComponent fuiComponent)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|