Перейти к содержанию

onTick

Fired every tick.

Warning

It's not a good idea to do intensive tasks in onTick. Think twice as to what you're throwing in here!

Usage

function onTick(int: delta)
    print(string.format("Took %s since last tick.", delta))
end