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

Comment by AlwaysSunny

WaitForSeconds is used in CoRoutines: http://docs.unity3d.com/$$anonymous$$anual/Coroutines.html

View Article



Comment by Wingman526

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

View Article

Comment by Wingman526

#pragma strict var speed : float = 5f; var $$anonymous$$issile : GameObject; function Update () { function Delay () { WaitForSeconds(30); } transform.position =...

View Article

Comment by julianjulianov

var speed : float = 5f; var Missile : GameObject; float _delayTime; void Update () { _delayTime += Time.deltaTime; if (_delayTime > 30f) { transform.position =...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images

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