Quantcast
Channel: Comments and answers for "How can I delay this script for 30 seconds? WaitForSeconds won't work under Update."
Browsing latest articles
Browse All 4 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 latest articles
Browse All 4 View Live




Latest Images