I added a third scene. Wanted to know how I should load the screen more levels?

private void LoadnNextScene()
{
SceneManager.LoadScene(1);
if (SceneManager.GetActiveScene() == SceneManager.GetSceneByName(“level2”))
{
SceneManager.LoadScene(“level3”);

    }

}

This is what I’ve done, this is not a good way of doing it if I want to add more Levels.
How should I fix this?

Hi,

I don’t know in which course you are but in the Block Breaker section in the Unity 2D course, Rick shows you how to load the next scene. See here.


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms