how to make new level

how do i make the game take you to a new level after 1 objective?

3 Answers

3

Very simple:

Application.LoadLevel(Application.LoadedLevel++);

will load the next level.

Have a look at Application.LoadLevel but the simple method is to create your levels (unity scenes), make sure they are added in the settings in File->Build Settings and then just call:

Application.LoadLevel(levelIndex)

Where levelIndex is equal to the index of the scene in the File->Build Settings dialog.

Where do you put that code though? And what do you do to trigger the new level starting?