#pragma strict
function OnTriggerEnter (other : Collider)
{
renderer.enabled = false;
yield WaitForSeconds (8);
renderer.enabled = true;
}
Here is the script so that when you encounter the box collider the plant will disappear for 8 seconds and the re-appear.
No comments:
Post a Comment