Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Why wont this delete the object?

$
0
0
Hello unity answers. This could be a 'dumb' question, however it is really bugging me. var time = 120.0; function Start () { yield WaitForSeconds(time); GameObject.Destroy(this); } Doesn't this wait 120sec (2min) then delete itself? Why wont it work? Thanks, Tim

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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