It's easy:
Define a function like this:
var delay = 2.0; //This implies a delay of 2 seconds.
function WaitAndDestroy(){
yield WaitForSeconds(delay);
Destroy (gameObject);
}
Call this function when you want to destroy it.
↧