Hey guys. I’m very stuck on something I feel like should not be too hard but nothings working for me. Basically I want the player to enter a box collider and have a text appear (already have that covered), then after about 5 seconds I want the object that triggered the text to be destroyed so it can’t be viewed anymore. This is what I have so far:
var Obj : GameObject;
function Start () {
Obj.SetActive(false);
}
function OnTriggerEnter () { Obj.SetActive (true); }
What can I add to this to make the game object (GUI Text) be destroyed after a certain amount of time?