i want to create GUITexture with function OnGUI and eneable it with onTriggerHit, here is the script. when i hit collider game stops
pls help me
var finish : Texture2D;
function OnGui () {
GUI.Box(Rect(0,0,Screen.height, Screen.width),finish);
}
function OnTriggerEnter(hit : Collider)
{
if(hit.gameObject.tag == "Finish")
{
guiTexture.texture = finish;
}
}