Quantcast
Channel: Answers for "How to call a routine every 3 seconds?"
Browsing latest articles
Browse All 4 View Live

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

Browsing latest articles
Browse All 4 View Live


Latest Images