using System; using Model; namespace Hotfix { public static class Init { private static void Start() { try { Hotfix.Scene.ModelScene.AddComponent(); Hotfix.Scene.ModelScene.AddComponent(); Hotfix.Scene.ModelScene.AddComponent(); Hotfix.Scene.ModelScene.AddComponent(); Hotfix.Scene.AddComponent(); Hotfix.Scene.AddComponent(); Hotfix.Scene.GetComponent().Run(EventIdType.InitSceneStart); } catch (Exception e) { Log.Error(e.ToString()); } } private static void Update() { try { ObjectEvents.Instance.Update(); } catch (Exception e) { Log.Error(e.ToString()); } } private static void OnApplicationQuit() { Hotfix.Close(); } } }