示例#1
0
文件: Grid.cs 项目: pardo312/BoomAway
    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
    }
示例#2
0
        public void LoadSelectedScene()
        {
            NextSceneLoader sceneLoader = new NextSceneLoader();

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

        sceneLoader.LoadNextScene(sceneToLoad);
    }