Quantcast
Channel: Comments and answers for "How can I delay this script for 30 seconds? WaitForSeconds won't work under Update."
Viewing all articles
Browse latest Browse all 4

Comment by Wingman526

$
0
0
I read that on the unity help, just not sure what that means entirely. I attempted to add a function within my function to rectify as the link stated that you provided but its stating the function I added was not doing anything. `#pragma strict var speed : float = 5f; var $$anonymous$$issile : GameObject; function Update () { function Delay () { WaitForSeconds(30); } transform.position = Vector3.$$anonymous$$oveTowards(transform.position, Vector3(0.6695971,-0.3633507,1.683784), speed * Time.deltaTime); if(transform.position.x <= 0.8){Destroy ($$anonymous$$issile); } }` What do I do at this point??

Viewing all articles
Browse latest Browse all 4

Trending Articles



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