Ok, I am trying to load a new level whenever my player collides with an object such as a door. So first I test collisions with the door between the door and the player, then if the collision is true I use the Application.LoadLevel(“level2”). And nothing happens. Can someone please tell me what I am doing wrong.
Check the debug console (menu window->console)after you’ve collided with the door. If there’s a problem an error should be listed, e.g:
“Level level2 couldn’t be loaded because it is not added to the build settings.
To add a level to the build settings use the menu File->Build Settings…”
Thanks, I didnt add it to the build list.