Class cc.Timer
- Defined in: CCScheduler.js
- Extends cc.Class
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Timer()
Light weight timer
|
Method Summary
Class Detail
cc.Timer()
Light weight timer
Method Detail
-
{String|function} getCallback()
- Returns:
- {String|function} returns callback
-
{Number} getInterval()
- Returns:
- {Number} returns interval of timer
-
setInterval(interval)
- Parameters:
- {Number} interval
- set interval in seconds
-
update(dt)triggers the timer
- Parameters:
- {Number} dt
- delta time