unity next scene

89

unity next scene -


using UnityEngine.SceneManagement;

int currentSceneIndex = SceneManager.GetActiveScene().buildIndex; 
if(currentSceneIndex<SceneManager.sceneCount-1)
{
    SceneManager.LoadScene(currentSceneIndex + 1);
}


Comments

Submit
0 Comments