Invokes an event after a specified duration. More...
Public Types | |
enum | TimingMode { Seconds , Frames } |
Public Member Functions | |
virtual void | StartTimer () |
Starts the timer manually. | |
virtual void | StartTimer (float duration) |
Starts the timer manually with a specified duration. | |
void | DestroyUnityObject (UnityEngine.Object o) |
Protected Member Functions | |
virtual void | Start () |
virtual void | OnEnable () |
virtual void | OnDisable () |
virtual void | CancelTimer () |
Cancels the timer's current countdown. | |
virtual void | TimeReached () |
Properties | |
TimingMode | mode [get, set] |
Count duration in seconds or number of frames. | |
float | duration [get, set] |
After starting timer, if Mode is Seconds, wait this many seconds before firing event. | |
int | frames [get, set] |
After starting timer, if Mode is Frames, wait this many seconds before firing event. | |
bool | activateOnStart [get, set] |
Start timer when this component starts. | |
bool | activateOnEnable [get, set] |
Start timer when this component is enabled. | |
Invokes an event after a specified duration.
The timer can be configured to start when the script starts or manually.
|
inlineprotectedvirtual |
Cancels the timer's current countdown.
|
inline |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
Starts the timer manually.
|
inlinevirtual |
Starts the timer manually with a specified duration.
duration | Duration to wait before invoking the event. |
|
inlineprotectedvirtual |
|
getset |
Start timer when this component is enabled.
|
getset |
Start timer when this component starts.
|
getset |
After starting timer, if Mode is Seconds, wait this many seconds before firing event.
|
getset |
After starting timer, if Mode is Frames, wait this many seconds before firing event.
|
getset |
Count duration in seconds or number of frames.