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);
}
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);
}
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...
Remove the word 'level'. It's just:
Application.Loadlevel(1);
Cheers.