Skip to main content

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

objectCCTimer

Implements

ICCSelectorProtocol

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

float

Interval

public float Interval

Field Value

float

Interval

public float Interval

Field Value

float

Interval

public float Interval

Field Value

float

Interval

public float Interval

Field Value

float

Interval

public float Interval

Field Value

float

Interval

public float Interval

Field Value

float

Interval

public float Interval

Field Value

float

Interval

public float Interval

Field Value

float

Interval

public float Interval

Field Value

float

Interval

public float Interval

Field Value

float

Interval

public float Interval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

OriginalInterval

public float OriginalInterval

Field Value

float

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

  • Constructors
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
    • CCTimer()
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float)
    • CCTimer(CCScheduler, ICCSelectorProtocol, Action<float>, float, uint, float)
  • Fields
    • Interval
    • Interval
    • Interval
    • Interval
    • Interval
    • Interval
    • Interval
    • Interval
    • Interval
    • Interval
    • Interval
    • Interval
    • OriginalInterval
    • OriginalInterval
    • OriginalInterval
    • OriginalInterval
    • OriginalInterval
    • OriginalInterval
    • OriginalInterval
    • OriginalInterval
    • OriginalInterval
    • OriginalInterval
    • OriginalInterval
    • OriginalInterval
    • Selector
    • Selector
    • Selector
    • Selector
    • Selector
    • Selector
    • Selector
    • Selector
    • Selector
    • Selector
    • Selector
    • Selector
  • Methods
    • Update(float)
    • Update(float)
    • Update(float)
    • Update(float)
    • Update(float)
    • Update(float)
    • Update(float)
    • Update(float)
    • Update(float)
    • Update(float)
    • Update(float)
    • Update(float)