Well anyway I'm new to scripting and I wrote this code, but it does not seem to work and I don't get any error with either. Can someone tell me what wrong with it.
function OnControllerColliderHit(hit: ControllerColliderHit)
{
if (hit.gameObject.tag == "cube")
{
Application.LoadLevel(1);
}
}