Exemplo n.º 1
0
    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
    }
Exemplo n.º 2
0
        public void LoadSelectedScene()
        {
            NextSceneLoader sceneLoader = new NextSceneLoader();

            sceneLoader.LoadNextScene(selectedNextScene);
        }
    public void LoadScene()
    {
        NextSceneLoader sceneLoader = new NextSceneLoader();

        sceneLoader.LoadNextScene(sceneToLoad);
    }