Applies a timer effect to a GUIProgressBar that counts down from 1 to 0. More...
Public Member Functions | |
override IEnumerator | Play () |
Run the timer. More... | |
Public Member Functions inherited from PixelCrushers.DialogueSystem.UnityGUI.GUIEffect | |
virtual void | Stop () |
void | OnEnable () |
void | OnDisable () |
Public Attributes | |
float | duration = 5f |
The timer duration. More... | |
Public Attributes inherited from PixelCrushers.DialogueSystem.UnityGUI.GUIEffect | |
GUIEffectTrigger | trigger = GUIEffectTrigger.OnEnable |
The trigger that makes the effect play. 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 GUIProgressBar that counts down from 1 to 0.
When time is up, it calls an event handler.
|
virtual |
Run the timer.
Implements PixelCrushers.DialogueSystem.UnityGUI.GUIEffect.
float PixelCrushers.DialogueSystem.UnityGUI.TimerEffect.duration = 5f |
The timer duration.
Action PixelCrushers.DialogueSystem.UnityGUI.TimerEffect.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.