First I used this script to load te level
function OnTriggerEnter (other : Collider) {
{
Application.LoadLevel(3);
}
But that didn't work because it always loads the level.
Then I added the line:
If (other.gameObject.tag == "player")
But then it doesn't load the level at all.
Does anyone have tips on how to load the level when the monster touches the player?
↧