UnityEssentials
Small but useful tools and features for Unity
|
Allows you to alternate between the execution of two events with each call of the Invoke method. More...
Public Member Functions | |
FlipFlop (UnityAction firstAction, UnityAction secondAction) | |
FlipFlop (UnityEvent firstEvent, UnityEvent secondEvent) | |
void | Invoke () |
Invokes the firstEvent or the secondEvent alternating. More... | |
Public Attributes | |
UnityEvent | firstEvent |
A set of events to execute together. More... | |
UnityEvent | secondEvent |
A set of events to execute together. More... | |
Private Attributes | |
UnityEvent | nextEvent = null |
The next UnityEvent to be executed. If null, firstEvent is going to be executed next . More... | |
Allows you to alternate between the execution of two events with each call of the Invoke method.
Definition at line 10 of file FlipFlop.cs.
UnityEngine.FlipFlop.FlipFlop | ( | UnityAction | firstAction, |
UnityAction | secondAction | ||
) |
Definition at line 27 of file FlipFlop.cs.
UnityEngine.FlipFlop.FlipFlop | ( | UnityEvent | firstEvent, |
UnityEvent | secondEvent | ||
) |
Definition at line 39 of file FlipFlop.cs.
void UnityEngine.FlipFlop.Invoke | ( | ) |
Invokes the firstEvent or the secondEvent alternating.
Definition at line 48 of file FlipFlop.cs.
UnityEvent UnityEngine.FlipFlop.firstEvent |
A set of events to execute together.
Definition at line 16 of file FlipFlop.cs.
|
private |
The next UnityEvent to be executed. If null, firstEvent is going to be executed next .
Definition at line 25 of file FlipFlop.cs.
UnityEvent UnityEngine.FlipFlop.secondEvent |
A set of events to execute together.
Definition at line 21 of file FlipFlop.cs.