Im making a game right now and have a gameobject that is tagged by; LevelExit when I touch this I want it to load the next level but it will not work because once i load the level and i want to leave the level im on now but it just reloads the level. here is my line of script that is going to help me accomplish this;
function OnControllerColliderHit (hit : ControllerColliderHit)
{
if(hit.gameObject.tag == “LevelExit”)
{
Application.LoadLevel(2);
}
}