Can anyone help me with this, below will display a minimap and GUI label once it is true.
So how do i make it disppear after showing 5seconds. means every time if its true it will be only display for 5s
function OnGUI(){
//The world position of the ray's contact point->
if(Down == true){
GUI.Label(Rect(610,606,200,50)," X : Y : Z");
GUI.Label(Rect(610,620,200,50),hitPos+ "") ;
minimap1.enabled = true;
minimap1.pixelRect = Rect(750,150,350,120);
}
}