new Timer(target)
Timer for a specific target to call update and render methods on every tick.
Parameters:
Name | Type | Description |
---|---|---|
target | object |
Methods
start()
Start the timer.
stop()
Stop the timer.
tick()
Tick of the timer.