Files
TEngine/Assets/GameScripts/DotNet/Hotfix/Share/FiberInit_Main.cs
ALEXTANG 336d4b2eb9 [+] 接入ET8服务端
[+] 接入ET8服务端
2023-07-13 12:23:48 +08:00

14 lines
529 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 EventType.EntryEvent1());
await EventSystem.Instance.PublishAsync(root, new EventType.EntryEvent2());
await EventSystem.Instance.PublishAsync(root, new EventType.EntryEvent3());
}
}
}