TH1/Unity/Assets/Scripts/Hotfix/Share/FiberInit_Main.cs
2025-07-17 18:26:28 +08:00

15 lines
511 B
C#

namespace ET
{
[Invoke((long)SceneType.Main)]
public class FiberInit_Main: AInvokeHandler<FiberInit, ETTask>
{
public override async ETTask Handle(FiberInit fiberInit)
{
Scene root = fiberInit.Fiber.Root;
await EventSystem.Instance.PublishAsync(root, new EntryEvent1());
await EventSystem.Instance.PublishAsync(root, new EntryEvent2());
await EventSystem.Instance.PublishAsync(root, new EntryEvent3());
}
}
}