C# Class SimpleTimer, audio_analyzer

Inheritance: MonoBehaviour
Datei anzeigen Open project: zombience/audio_analyzer Class Usage Examples

Protected Properties

Property Type Description
_fixedTime bool
_isPaused bool
_life float
_pauseTime float
_startTime float

Public Methods

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

Method Details

AddTime() public method

Add time to the timer
public AddTime ( float amt ) : void
amt float
return void

Resume() public method

starts timer again using time remaining
public Resume ( ) : void
return void

SimpleTimer() public method

public SimpleTimer ( ) : System.Collections
return System.Collections

SimpleTimer() public method

timer is implicitly started on instantiation
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

Stop() public method

stop pauses the timer and allows for resume at current elapsed time
public Stop ( ) : void
return void

Property Details

_fixedTime protected_oe property

protected bool _fixedTime
return bool

_isPaused protected_oe property

protected bool _isPaused
return bool

_life protected_oe property

protected float _life
return float

_pauseTime protected_oe property

protected float _pauseTime
return float

_startTime protected_oe property

protected float _startTime
return float