I’m having trouble with a scene change. This is the code I currently have.
#pragma strict
function OnCollisionEnter(other : Collision){
if(other.gameObject.name == “Player”){
Application.LoadLevel(“Level1Outside”);
}
if(other.gameObject.tag == "Player"){
Application.LoadLevel("Level1Outside");
}
}
I have set the empty object as a trigger, added the script, tried putting the script into both C# and Javascript, put the levels into my build settings, my first person controller is tagged ‘Player’, nothing god damn works.
Sorry for getting annoyed, but i’ve been trying to get this right for days, and it’s starting to anger me.
~James