Applies a timer effect to a tk2dProgressBar that counts down from 1 to 0. More...
Public Member Functions | |
IEnumerator | Play () |
Runs the timer. More... | |
Public Attributes | |
float | duration = 5f |
The timer duration. More... | |
Properties | |
float? | Value [get, set] |
Gets or sets the value of the progress bar. More... | |
Events | |
Action | TimeoutHandler = null |
Occurs when the timer is done (i.e., at the end of duration). More... | |
Applies a timer effect to a tk2dProgressBar that counts down from 1 to 0.
When time is up, it calls an event handler. Attach this script to your response menu timer.
IEnumerator PixelCrushers.DialogueSystem.TK2D.TK2DTimer.Play | ( | ) |
Runs the timer.
float PixelCrushers.DialogueSystem.TK2D.TK2DTimer.duration = 5f |
The timer duration.
|
getset |
Gets or sets the value of the progress bar.
The value (0-1).
Action PixelCrushers.DialogueSystem.TK2D.TK2DTimer.TimeoutHandler = null |
Occurs when the timer is done (i.e., at the end of duration).
If the coroutine is stopped or the control is deactivated, this will never get called.