Scheduler
Schedule functions to run in the future.
Summary
Enumerators
ONE_SECOND
int Enum.ONE_SECOND
This is equal to 30, which is how many frames there are in a second.
Methods
Schedule()
void Schedule(int frameDelay, function callback, any... ...)
Schedule callback
to run with all arguments provided (...
is a variadic argument) after frameDelay
frames have passed.
Empty()
void Empty()
Cancel all scheduled tasks. This is called internally when the game is exited or on gameover.
Last updated