Title says all. Here is my script
var hasCollided : boolean = false;
var labelText : String = "";
var aTexture : Texture;
function OnGUI()
{
if (hasCollided ==true)
{
GUI.Box(Rect(140,Screen.height-50,Screen.width-300,120),(labelText));
}
}
function OnTriggerEnter(c:Collider)
{
if(c.gameObject.tag =="Player")
{
hasCollided = true;
labelText = "Hit E to Read";
}
}
if (Input.GetKeyDown ("e")){
if(!aTexture);{
GUI.DrawTexture(Rect(10,10,60,60), aTexture, ScaleMode.ScaleToFit, true, 10.0f);
}
}
function OnTriggerExit( other : Collider )
{
hasCollided = false;
}