#35 Creating Multiple Scenes

Here is the code I used in the void Update section and it actually worked pretty well.

if (Input.GetKeyDown(KeyCode.Space))
{
int currentIndex = SceneManager.GetActiveScene().buildIndex;
SceneManager.LoadScene(currentIndex + 1);
}

1 Like

Privacy & Terms