Component_Timer Class
A component which adds timing-features to a game object. A timer-component can be used as a regular timer or as a stop-watch.
Item Index
Methods
Properties
Methods
pause
()
Pauses the timer.
resume
()
Resumes the timer.
start
()
Starts the timer.
stop
()
Stops the timer.
update
()
Updates the timer.
updateStopWatch
()
Updates the stop-watch behavior
updateTimer
()
Updates the regular timer behavior
Properties
frameCount
Number
private
isRunning
Boolean
Indicates if the timer is running.