make sure that your text is outside of what you have it in front of, and if that don't work than try this instead.
var isQuitButton = false;
function OnMouseEnter()
{
//change the color of the text
renderer.material.color = Color.green;
}
function OnMouseExit()
{
//change the color of the text
renderer.material.color = Color.white;
}
function OnMouseUp()
{
//are we dealing with a Quit Button?
if( isQuitButton )
{
//quit the game
Application.Quit();
}
else
{
//load level
Application.LoadLevel(1);
}
}
agian make sure that your text is in front of it not inside.