So Im trying to make it so that once my character hits the door, it`ll act as a portal and take him to the next scene but its not working. Ive tried OnTriggerEnter and OnCollisionEnter. This is mycurrent code.
function OnControllerColliderHit(other : Collision)
{
if(other.gameObject.name == "Portal1"){
Debug.Log("You are in the Portal");
Application.LoadLevel("MainMenu");
}
}