Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

Calling a function every 2 seconds.

$
0
0
Does anyone know a good way I can call a function every two seconds so I can control the speed at which I my Ball objects across the screen.

I already have a function to instantiate the objects I just need a way to call it at specified time intervals , is it possible to make these values a little varied using something like Random.Range?

Viewing all articles
Browse latest Browse all 10823

Trending Articles