Skip to main content

CCTimer

CCTimer

Cocos2D

Inheritance: System.Object

Implements: Cocos2D.ICCSelectorProtocol

Constructors​

CCTimer()

CCTimer()()

CCTimer(CCScheduler, ICCSelectorProtocol, Action)

CCTimer(CCScheduler, ICCSelectorProtocol, Action)(Cocos2D.CCScheduler scheduler, Cocos2D.ICCSelectorProtocol target, System.ActionSystem.Single selector)
Parameters:
scheduler (Cocos2D.CCScheduler)
target (Cocos2D.ICCSelectorProtocol)
selector (System.ActionSystem.Single)

CCTimer(CCScheduler, ICCSelectorProtocol, Action, float)

CCTimer(CCScheduler, ICCSelectorProtocol, Action, float)(Cocos2D.CCScheduler scheduler, Cocos2D.ICCSelectorProtocol target, System.ActionSystem.Single selector, System.Single seconds)
Parameters:
scheduler (Cocos2D.CCScheduler)
target (Cocos2D.ICCSelectorProtocol)
selector (System.ActionSystem.Single)
seconds (System.Single)

CCTimer(CCScheduler, ICCSelectorProtocol, Action, float, uint, float)

CCTimer(CCScheduler, ICCSelectorProtocol, Action, float, uint, float)(Cocos2D.CCScheduler scheduler, Cocos2D.ICCSelectorProtocol target, System.ActionSystem.Single selector, System.Single seconds, System.UInt32 repeat, System.Single delay)
Parameters:
scheduler (Cocos2D.CCScheduler)
target (Cocos2D.ICCSelectorProtocol)
selector (System.ActionSystem.Single)
seconds (System.Single)
repeat (System.UInt32)
delay (System.Single)

Fields​

Interval(System.Single)
OriginalInterval(System.Single)
Selector(System.ActionSystem.Single)

Methods​

Update(float)

Update(float)(System.Single dt)
Parameters:
dt (System.Single)
Example