15 [Tooltip(
"The amount of times the events can be invoked")]
24 [Tooltip(
"The events called at every invoke")]
29 UnityEvent unityEvent =
new UnityEvent();
30 unityEvent.AddListener(unityAction);
31 this.calledEvent = unityEvent;
Allows the limitation of how many times an event can be executed.
int invokingTimes
The amount of times the events can be invoked.
int invokedTimes
How many times the events have been invoked.
DoN(UnityAction unityAction, int invokingTimes)
DoN(UnityEvent calledEvent, int invokingTimes)
UnityEvent calledEvent
The events called at every invoke.
void Invoke()
Invokes all registered events callbacks (runtime and persistent).