Method | Description | |
---|---|---|
Create ( float tickLength, bool repeats, Action |
Creates a new Timer.
|
|
Stop ( ) : void |
Stops the timer.
|
|
Update ( float dt ) : void |
Updates all the Timers.
|
public static Create ( float tickLength, bool repeats, Action |
||
tickLength | float | The amount of time between the timer's ticks. |
repeats | bool | Whether or not the timer repeats. |
tick | Action |
An action to perform when the timer ticks. |
return |
public static Update ( float dt ) : void | ||
dt | float | The elapsed time (in seconds) to advance the timers. Generally you want to pass in (float)gameTime.ElapsedGameTime.TotalSeconds from your main Game class. |
return | void |