Exemplo n.º 1
0
    private void LoadNextSceneAsync()
    {
        string sceneName = SamplesMainMenu.GetSceneToLoad();

        #if (UNITY_5_2 || UNITY_5_1 || UNITY_5_0)
        Application.LoadLevelAsync(sceneName);
        #else // UNITY_5_3 or above
        UnityEngine.SceneManagement.SceneManager.LoadSceneAsync(sceneName);
        #endif
    }
    void LoadNextSceneAsync()
    {
        string sceneName = SamplesMainMenu.GetSceneToLoad();

        UnityEngine.SceneManagement.SceneManager.LoadSceneAsync(sceneName);
    }