Entry.cs 605 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. namespace ET
  3. {
  4. public static class Entry
  5. {
  6. public static void Start()
  7. {
  8. try
  9. {
  10. CodeLoader.Instance.Update += Game.Update;
  11. CodeLoader.Instance.LateUpdate += Game.LateUpdate;
  12. CodeLoader.Instance.OnApplicationQuit += Game.Close;
  13. Log.Info($"11111111111111111111111111111111111111111111111");
  14. Game.EventSystem.Add(CodeLoader.Instance.GetTypes());
  15. Log.Info($"11111111111111111111111111111111111111111111112");
  16. Game.EventSystem.Publish(new EventType.AppStart()).Coroutine();
  17. }
  18. catch (Exception e)
  19. {
  20. Log.Error(e);
  21. }
  22. }
  23. }
  24. }