void Awake() { _instance = this; DontDestroyOnLoad(gameObject); Screen.sleepTimeout = SleepTimeout.NeverSleep; Application.targetFrameRate = 30; ResourceManager.Instance.Init(); ILRuntimeManager.Init(); ResourceManager.Instance.AfterInit(); SceneLoader.LoadSceneAdditive("UI"); }
void Awake() { Debugger.Init(Application.persistentDataPath); _instance = this; Screen.sleepTimeout = SleepTimeout.NeverSleep; Application.targetFrameRate = 30; ResourceManager.Instance.Init(); ILRuntimeManager.Init(); SceneLoader.LoadSceneAdditive("UI"); if (BuildSettings.Debug) { GameObject go = new GameObject("GameStates"); go.AddComponent <GameStates>(); } }