| 1234567891011121314151617181920 |
- using System.Collections.Generic;
- using MemoryPack;
- namespace ET
- {
- [Invoke(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());
-
- Log.Debug($"run success!");
- }
- }
- }
|