Quantcast
Channel: Answers for "How to call a routine every 3 seconds?"
Browsing index pages (4 articles)

Answer by synapsemassage

correct Javascript syntax for InvokeRepeating would be: function InvokeRepeating (methodName : string, time : float, repeatRate : float) : voidexample: InvokeRepeating("YourFunctionName", 0, 3);"0" is...

View Article


Answer by Mike 3

you can just use this:InvokeRepeating("YourFunctionName", 3);or (js):function Start() { YourFunctionName(); } function YourFunctionName() { while(true) { DoSomething(); yield WaitForSeconds(3); } } or...

View Article


Answer by synapsemassage

correct Javascript syntax for InvokeRepeating would be: function InvokeRepeating (methodName : string, time : float, repeatRate : float) : voidexample: InvokeRepeating("YourFunctionName", 0, 3);"0" is...

View Article

Answer by Mike 3

you can just use this:InvokeRepeating("YourFunctionName", 3);or (js):function Start() { YourFunctionName(); } function YourFunctionName() { while(true) { DoSomething(); yield WaitForSeconds(3); } } or...

View Article
Browsing index pages (4 articles)


Latest Images