Quantcast
Channel: Answers for "destroy object after a delay?"
Viewing all articles
Browse latest Browse all 12

Answer by BiG

$
0
0
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.

Viewing all articles
Browse latest Browse all 12

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>