C# Class SimpleTimer, audio_analyzer

Inheritance: MonoBehaviour
Afficher le fichier Open project: zombience/audio_analyzer Class Usage Examples

Protected Properties

Свойство Type Description
_fixedTime bool
_isPaused bool
_life float
_pauseTime float
_startTime float

Méthodes publiques

Méthode 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 méthode

Add time to the timer
public AddTime ( float amt ) : void
amt float
Résultat void

Resume() public méthode

starts timer again using time remaining
public Resume ( ) : void
Résultat void

SimpleTimer() public méthode

public SimpleTimer ( ) : System.Collections
Résultat System.Collections

SimpleTimer() public méthode

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
Résultat System.Collections

Stop() public méthode

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

Property Details

_fixedTime protected_oe property

protected bool _fixedTime
Résultat bool

_isPaused protected_oe property

protected bool _isPaused
Résultat bool

_life protected_oe property

protected float _life
Résultat float

_pauseTime protected_oe property

protected float _pauseTime
Résultat float

_startTime protected_oe property

protected float _startTime
Résultat float