C# 클래스 RedBlueGames.Tools.RBTimer

파일 보기 프로젝트 열기: redbluegames/rb-unity-tools

공개 메소드들

메소드 설명
GetTimeRemaining ( ) : float

Gets the time remaining.

IsUnset ( ) : bool

Determines whether this instance is unset.

RBTimer ( ) : System.Collections

Initializes a new instance of the RBTimer class without a Duration

RBTimer ( float timerDuration, bool repeats = false ) : System.Collections

Initializes a new instance of the RBTimer class with a duration.

Start ( MonoBehaviour targetMonobehaviour, System timerFinishedAction = null ) : void

Start the timer, attached to the specified targetMonobehaviour. Raises timerFinishedAction when complete.

Stop ( ) : void

Stop this timer, without calling the Finished action.

비공개 메소드들

메소드 설명
CountdownForDuration ( float desiredDuration ) : IEnumerator
DoStart ( ) : void
StartTimerCoroutine ( float waitSeconds ) : void
StopTimerCoroutine ( ) : void
TimerFinished ( ) : void

메소드 상세

GetTimeRemaining() 공개 메소드

Gets the time remaining.
public GetTimeRemaining ( ) : float
리턴 float

IsUnset() 공개 메소드

Determines whether this instance is unset.
public IsUnset ( ) : bool
리턴 bool

RBTimer() 공개 메소드

Initializes a new instance of the RBTimer class without a Duration
public RBTimer ( ) : System.Collections
리턴 System.Collections

RBTimer() 공개 메소드

Initializes a new instance of the RBTimer class with a duration.
public RBTimer ( float timerDuration, bool repeats = false ) : System.Collections
timerDuration float Timer duration.
repeats bool If set to true, timer will repeat after it completes.
리턴 System.Collections

Start() 공개 메소드

Start the timer, attached to the specified targetMonobehaviour. Raises timerFinishedAction when complete.
public Start ( MonoBehaviour targetMonobehaviour, System timerFinishedAction = null ) : void
targetMonobehaviour UnityEngine.MonoBehaviour Target monobehaviour to attach Coroutine to.
timerFinishedAction System Action invoked on timer complete.
리턴 void

Stop() 공개 메소드

Stop this timer, without calling the Finished action.
public Stop ( ) : void
리턴 void