Метод | Описание | |
---|---|---|
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 ( |
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 |
public RBTimer ( float timerDuration, bool repeats = false ) : System.Collections | ||
timerDuration | float | Timer duration. |
repeats | bool | If set to |
Результат | System.Collections |
public Start ( |
||
targetMonobehaviour | Target monobehaviour to attach Coroutine to. | |
timerFinishedAction | System | Action invoked on timer complete. |
Результат | void |