123456789101112131415161718192021222324252627 |
- using System;
- namespace ET
- {
- public static class Entry
- {
- public static void Start()
- {
- try
- {
- CodeLoader.Instance.Update += Game.Update;
- CodeLoader.Instance.LateUpdate += Game.LateUpdate;
- CodeLoader.Instance.OnApplicationQuit += Game.Close;
-
-
- Game.EventSystem.Add(CodeLoader.Instance.GetTypes());
-
- Game.EventSystem.Publish(new EventType.AppStart());
- }
- catch (Exception e)
- {
- Log.Error(e);
- }
- }
- }
- }
|