I have spent 4 hours trying to see what was wrong. No errors at all. The script is about using a object as a trigger when the player goes in it. I am using a box collider and a character controller. when the player falls into the trigger it restarts the level, but it’s no doing it. The script(JavaScript):
#pragma strict
var Player : GameObject;
function OnTriggerEnter (other : Collider) {
Application.LoadLevel(0); //or whatever number your scene is
}
Please give me the ENTIRE code, I never get what your talking about when you just put up a incomplete code. This is for my 2D game.