I am making trying to find a script to bring you to a different menu when the first person controller prefab falls into the daylight water. This is how I am using the script:
function OnControllerColliderHit(hit : ControllerColliderHit) { if (hit.gameObject.name == "EndGame Water") { Application.LoadLevel(6); } }
It's not working, help? I added box collider, then trigger, then this script to the water. =[ (6) is what I want it to get to