#pragma strict
var deadScene : String;
function Start () {
}
function Update () {
}
function OnCollisionEnter(other : Collision) {
if(other.gameObject.tag == "Player") {
Application.LoadLevel(deadScene);
}
}
Do you have two colliders, one with at least a rigidbody, on your two objects? If you have a mesh collider it might need the convex option checked.