void Awake() { DontDestroyOnLoad(this); UnityUtils.ShowCursor(!HideCursor); if (ForceFPS) { QualitySettings.vSyncCount = 0; Application.targetFrameRate = GameFPS; } if (!string.IsNullOrEmpty(sceneName) && !InEditor) { SceneManager.LoadScene(sceneName, LoadSceneMode.Additive); } }
void Awake() { DontDestroyOnLoad(this); UnityUtils.ShowCursor(!HideCursor); QualitySettings.vSyncCount = 0; Application.targetFrameRate = ForceFPS ? GameFPS : -1; if (sceneNames != null && !InEditor) { foreach (var scene in sceneNames) { SceneManager.LoadScene(scene, LoadSceneMode.Additive); } } }