Struct DeltaTimer

Namespace
Elegy.Common.Utilities
Assembly
Elegy.Common.dll

Debounce and timing utilities based on delta time.

public struct DeltaTimer
Inherited Members

Constructors

DeltaTimer(float)

public DeltaTimer(float seconds)

Parameters

seconds float

Properties

Seconds

Time span of this timer. Once the internal clock hits zero, it resets to this.

public float Seconds { readonly get; set; }

Property Value

float

Methods

Update(float, Action)

public void Update(float delta, Action actionOnTime)

Parameters

delta float
actionOnTime Action