Entry.cs 871 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System.Timers;
  2. using ICSharpCode.SharpZipLib.Zip;
  3. namespace ET
  4. {
  5. namespace EventType
  6. {
  7. public struct EntryEvent1
  8. {
  9. }
  10. public struct EntryEvent2
  11. {
  12. }
  13. public struct EntryEvent3
  14. {
  15. }
  16. }
  17. public static class Entry
  18. {
  19. public static void Start()
  20. {
  21. StartAsync().Coroutine();
  22. }
  23. private static async ETTask StartAsync()
  24. {
  25. MongoRegister.Init();
  26. await EventSystem.Instance.PublishAsync(Root.Instance.Scene, new EventType.EntryEvent1());
  27. await EventSystem.Instance.PublishAsync(Root.Instance.Scene, new EventType.EntryEvent2());
  28. await EventSystem.Instance.PublishAsync(Root.Instance.Scene, new EventType.EntryEvent3());
  29. }
  30. }
  31. }