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

Answer by Wiebren de Haan

$
0
0
var Seconds = 10; function Update(){ Destroy(); } function Destroy(){ yield WaitForSeconds(Seconds); Destroy(gameObject); } Add this to a javascript, set the time in Seconds (Use the var). And the gameobject will be destroyed after in this script 10 seconds

Viewing all articles
Browse latest Browse all 12

Trending Articles



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