UnityEssentials
Small but useful tools and features for Unity
|
Allows you to execute different events every time the Invoke method of this is class called. More...
Public Member Functions | |
Sequence (UnityAction[] actions, bool randomizeOrder=false, int randomizationSeed=-1) | |
Sequence (UnityEvent[] events, bool randomizeOrder=false, int randomizationSeed=-1) | |
void | Invoke () |
Public Attributes | |
bool | randomizeOrder |
Should the order of execution of the events be random? If false, the order will be the same as in the events array. More... | |
UnityEvent[] | events |
Each of the events to execute at every call of the Invoke method. More... | |
Private Attributes | |
RandomEssentials | random = new RandomEssentials() |
The randomness generation object to choose the next event to execute. More... | |
UnityEvent | nextEvent = null |
The next UnityEvent to be executed. If null, firstEvent is going to be executed next . More... | |
int | nextEventIndex = 0 |
The index of the next UnityEvent to be executed. More... | |
Allows you to execute different events every time the Invoke method of this is class called.
Definition at line 11 of file Sequence.cs.
UnityEngine.Sequence.Sequence | ( | UnityAction[] | actions, |
bool | randomizeOrder = false , |
||
int | randomizationSeed = -1 |
||
) |
Definition at line 36 of file Sequence.cs.
UnityEngine.Sequence.Sequence | ( | UnityEvent[] | events, |
bool | randomizeOrder = false , |
||
int | randomizationSeed = -1 |
||
) |
Definition at line 56 of file Sequence.cs.
void UnityEngine.Sequence.Invoke | ( | ) |
UnityEvent [] UnityEngine.Sequence.events |
Each of the events to execute at every call of the Invoke method.
Definition at line 26 of file Sequence.cs.
|
private |
The next UnityEvent to be executed. If null, firstEvent is going to be executed next .
Definition at line 30 of file Sequence.cs.
|
private |
The index of the next UnityEvent to be executed.
Definition at line 34 of file Sequence.cs.
|
private |
The randomness generation object to choose the next event to execute.
Definition at line 21 of file Sequence.cs.
bool UnityEngine.Sequence.randomizeOrder |
Should the order of execution of the events be random? If false, the order will be the same as in the events array.
Definition at line 17 of file Sequence.cs.