- Home /
level load problem
hey guys maybe you can tel me what i have done wrong here unity says gthare is a problem with this script
function OnTriggerEnter (other : Collider) {
Application.LoadLevel (Level 1);
}
Comment
Answer by Valdemars Magone · Apr 16, 2011 at 06:37 PM
Maybe you want to write name of the level (scene), then it should look like this :
function OnTriggerEnter (other : Collider) {
Application.LoadLevel ("Level 1");
}
It's useful if you change order of scenes in build settings...
Answer by Joshua · Apr 16, 2011 at 01:36 PM
Remove the word 'level'. It's just:
Application.Loadlevel(1);
Cheers.