Here’s my script:
//Goes to Level when the player walks through the door
function OnTriggerEnter (other : Collider)
{
Debug.Log ("OnTriggerEnter : cubeTrigger.tag = " + other.tag); //to show
tag
if (other.tag == "transport")
{
Application.LoadLevel ("practiceLevel2");
}
}
I’ve set a plane with the is trigger box checked in the mesh collider and the set the tag as “transport”. I’ve also made sure my “practiceLevel2” scene is set in my build settings. I’m new.
Is this not working? It looks about right. What is the error?
– jacobschellenbergThere's no error, it just doesn't do anything.
– flightrap