A base class timer that either invokes a UnityEvent
when time elapses or resets when an interrupt happens.
More...
|
UnityEvent | OnTimerElapsed |
| Inspector, Code
Calls the function(s) subscribed to this UnityEvent when the timer has elapsed.
|
|
A base class timer that either invokes a UnityEvent
when time elapses or resets when an interrupt happens.
- See also
- UnityEngine.Events.UnityEvent
-
UnityEngine.Coroutine
◆ CheckForInterrupt()
bool CheckForInterrupt |
( |
| ) |
|
|
abstractprotected |
Checks for an interrupt condition to determine if the timer will reset.
- Returns
true
if the timer will reset, false
if the timer will keep going or not reset.
◆ Start()
◆ Timer()
virtual IEnumerator Timer |
( |
| ) |
|
|
protectedvirtual |
◆ Update()
◆ OnTimerElapsed
UnityEvent OnTimerElapsed |
Inspector, Code
Calls the function(s) subscribed to this UnityEvent
when the timer has elapsed.
◆ timerSeconds
float timerSeconds = 120f |
|
protected |
Inspector
The duration of the timer in seconds.
◆ triggerOnStart
bool triggerOnStart = false |
|
protected |
The documentation for this class was generated from the following file:
- C:/Users/cgbrown/Development/git/FAST/FAST-SDK/Runtime/Timers/EventTimer.cs