FiberInit_Main.cs 541 B

123456789101112131415
  1. namespace ET
  2. {
  3. [Invoke((long)SceneType.Main)]
  4. public class FiberInit_Main: AInvokeHandler<FiberInit, ETTask>
  5. {
  6. public override async ETTask Handle(FiberInit fiberInit)
  7. {
  8. Scene root = fiberInit.Fiber.Root;
  9. await EventSystem.Instance.PublishAsync(root, new EventType.EntryEvent1());
  10. await EventSystem.Instance.PublishAsync(root, new EventType.EntryEvent2());
  11. await EventSystem.Instance.PublishAsync(root, new EventType.EntryEvent3());
  12. }
  13. }
  14. }