Hello people of the internet!
Is there a way to load the next level, without having to type in the level name? Thanks!
Hello people of the internet!
Is there a way to load the next level, without having to type in the level name? Thanks!
You can move to the next level in the build setting sequence like this:
Application.LoadLevel(Application.loadedLevel+1);
Assuming you mean chaging to a different level with on script, just do this:
Application.LoadLevel(1)
And just give each level or room a unique number and replace the “1” with that unique number.
Hope this helps.