Cocos2D.CCTimer
Class CCTimer
Namespace: Cocos2D
Assembly: Cocos2D.dll, cocos2d_mono.Core.Android.dll, cocos2d_mono.Core.DesktopGL.dll, cocos2d-mono.Core.iOS.dll, cocos2d_mono.Core.Linux.dll, cocos2d_mono.Core.macOS.dll, cocos2d_mono.Windows.dll, cocos2d_mono.DesktopGL.dll, cocos2d-mono.iOS.dll, cocos2d_mono.Linux.dll, cocos2d_mono.macOS.dll
public class CCTimer : ICCSelectorProtocol
Inheritance
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
CCTimer()
public CCTimer()
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
public CCTimer(CCScheduler scheduler, ICCSelectorProtocol target, Action<float> selector, float seconds, uint repeat, float delay)
Parameters
scheduler
CCScheduler
target
ICCSelectorProtocol
selector
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
seconds
float
repeat
uint
delay
float
Fields
Interval
public float Interval
Field Value
Interval
public float Interval
Field Value
Interval
public float Interval
Field Value
Interval
public float Interval
Field Value
Interval
public float Interval
Field Value
Interval
public float Interval
Field Value
Interval
public float Interval
Field Value
Interval
public float Interval
Field Value
Interval
public float Interval
Field Value
Interval
public float Interval
Field Value
Interval
public float Interval
Field Value
Interval
public float Interval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
OriginalInterval
public float OriginalInterval
Field Value
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Selector
public Action<float> Selector
Field Value
Action[float](https://learn.microsoft.com/dotnet/api/system.single)\
Methods
Update(float)
public void Update(float dt)
Parameters
dt
float
Update(float)
public void Update(float dt)
Parameters
dt
float
Update(float)
public void Update(float dt)
Parameters
dt
float
Update(float)
public void Update(float dt)
Parameters
dt
float
Update(float)
public void Update(float dt)
Parameters
dt
float
Update(float)
public void Update(float dt)
Parameters
dt
float
Update(float)
public void Update(float dt)
Parameters
dt
float
Update(float)
public void Update(float dt)
Parameters
dt
float
Update(float)
public void Update(float dt)
Parameters
dt
float
Update(float)
public void Update(float dt)
Parameters
dt
float
Update(float)
public void Update(float dt)
Parameters
dt
float
Update(float)
public void Update(float dt)
Parameters
dt
float