static Grid() { GameObject g = safeFind("Managers"); worldSaveManager = (WorldSaveManager)SafeComponent(g, "WorldSaveManager"); gameStateManager = (GameStateManager)SafeComponent(g, "GameStateManager"); audioManager = (AudioManager)SafeComponent(g, "AudioManager"); #if UNITY_EDITOR nextSceneLoader = (NextSceneLoader)SafeComponent(g, "NextSceneLoader"); SceneManager.LoadScene(System.IO.Path.GetFileNameWithoutExtension(EditorPrefs.GetString("SceneAutoLoader.PreviousScene"))); #endif }
public void LoadSelectedScene() { NextSceneLoader sceneLoader = new NextSceneLoader(); sceneLoader.LoadNextScene(selectedNextScene); }
public void LoadScene() { NextSceneLoader sceneLoader = new NextSceneLoader(); sceneLoader.LoadNextScene(sceneToLoad); }