Property | Type | Description | |
---|---|---|---|
_fixedTime | bool | ||
_isPaused | bool | ||
_life | float | ||
_pauseTime | float | ||
_startTime | float |
Method | Description | |
---|---|---|
AddTime ( float amt ) : void |
Add time to the timer
|
|
Resume ( ) : void |
starts timer again using time remaining
|
|
SimpleTimer ( ) : System.Collections | ||
SimpleTimer ( float lifeSpan, bool useFixedTime = false ) : System.Collections |
timer is implicitly started on instantiation
|
|
Stop ( ) : void |
stop pauses the timer and allows for resume at current elapsed time
|
public SimpleTimer ( float lifeSpan, bool useFixedTime = false ) : System.Collections | ||
lifeSpan | float | length of the timer |
useFixedTime | bool | use fixed (physics) time or screen update time |
return | System.Collections |