C# 클래스 SimpleTimer, audio_analyzer

상속: MonoBehaviour
파일 보기 프로젝트 열기: zombience/audio_analyzer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_fixedTime bool
_isPaused bool
_life float
_pauseTime float
_startTime float

공개 메소드들

메소드 설명
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

메소드 상세

AddTime() 공개 메소드

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

Resume() 공개 메소드

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

SimpleTimer() 공개 메소드

public SimpleTimer ( ) : System.Collections
리턴 System.Collections

SimpleTimer() 공개 메소드

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
리턴 System.Collections

Stop() 공개 메소드

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

프로퍼티 상세

_fixedTime 보호되어 있는 프로퍼티

protected bool _fixedTime
리턴 bool

_isPaused 보호되어 있는 프로퍼티

protected bool _isPaused
리턴 bool

_life 보호되어 있는 프로퍼티

protected float _life
리턴 float

_pauseTime 보호되어 있는 프로퍼티

protected float _pauseTime
리턴 float

_startTime 보호되어 있는 프로퍼티

protected float _startTime
리턴 float