Trouble with OnTriggerEnter

My OnTriggerEnter code stopped working. I have it set up so when a collider enters the player’s collider it would load a game over screen. This was working now it just passes through the collider. it does work if the character jumps onto or into the collider but if the player is not moving it passes though. here’s the code:

void OnTriggerEnter (Collider other) {

	if (other.tag == "Player"){
		
		Application.LoadLevel ("end");
		return;
	}
}

Make sure either one of your objects (player or the collider) have a rigidbody on them. I don’t know if they can both have one. Did this help?

Does this answer your question? Also I’m sorry this is in JavaScript; I just prefer JavaScript over C#. Good luck with your project!

//Be sure the object has a collider marked trigger and whatever enters it is tagged "Player"
var level : String = "Game Over Level";
function OnTriggerEnter (other : Collider) {
        if(player.gameObject.tag=="Player") { //only loads level if the object colliding with trigger is tagged player
             GUI.Label (Rect (0.5, 0.5, 0, 0), "Game Over"); //GUI Text popup for game over message
	     yield WaitForSeconds (2); //wait for 2 seconds to read the message
             Application.LoadLevel(level);//loads whatever level is in string
    }
}