mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
14 lines
529 B
C#
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());
|
|
}
|
|
}
|
|
} |