Limits the execution of an event so it can only be executed one time.
More...
Limits the execution of an event so it can only be executed one time.
Definition at line 10 of file DoOnce.cs.
◆ DoOnce() [1/2]
UnityEngine.DoOnce.DoOnce |
( |
UnityAction |
unityAction | ) |
|
◆ DoOnce() [2/2]
UnityEngine.DoOnce.DoOnce |
( |
UnityEvent |
calledEvent | ) |
|
◆ Invoke()
void UnityEngine.DoOnce.Invoke |
( |
| ) |
|
Invokes all registered events callbacks (runtime and persistent).
Definition at line 37 of file DoOnce.cs.
◆ calledEvent
UnityEvent UnityEngine.DoOnce.calledEvent |
The events called at the invoke.
Definition at line 16 of file DoOnce.cs.
◆ eventInvoked
bool UnityEngine.DoOnce.eventInvoked = false |
Weather or not the even has been executed already.
Definition at line 20 of file DoOnce.cs.
The documentation for this class was generated from the following file: