UnityEssentials
Small but useful tools and features for Unity
Public Member Functions | Public Attributes | Private Attributes | List of all members
UnityEngine.Sequence Class Reference

Allows you to execute different events every time the Invoke method of this is class called. More...

Collaboration diagram for UnityEngine.Sequence:
Collaboration graph

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...
 

Detailed Description

Allows you to execute different events every time the Invoke method of this is class called.

Definition at line 11 of file Sequence.cs.

Constructor & Destructor Documentation

◆ Sequence() [1/2]

UnityEngine.Sequence.Sequence ( UnityAction[]  actions,
bool  randomizeOrder = false,
int  randomizationSeed = -1 
)

Definition at line 36 of file Sequence.cs.

◆ Sequence() [2/2]

UnityEngine.Sequence.Sequence ( UnityEvent[]  events,
bool  randomizeOrder = false,
int  randomizationSeed = -1 
)

Definition at line 56 of file Sequence.cs.

Member Function Documentation

◆ Invoke()

void UnityEngine.Sequence.Invoke ( )

Definition at line 67 of file Sequence.cs.

Here is the call graph for this function:

Member Data Documentation

◆ events

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.

◆ nextEvent

UnityEvent UnityEngine.Sequence.nextEvent = null
private

The next UnityEvent to be executed. If null, firstEvent is going to be executed next .

Definition at line 30 of file Sequence.cs.

◆ nextEventIndex

int UnityEngine.Sequence.nextEventIndex = 0
private

The index of the next UnityEvent to be executed.

Definition at line 34 of file Sequence.cs.

◆ random

RandomEssentials UnityEngine.Sequence.random = new RandomEssentials()
private

The randomness generation object to choose the next event to execute.

Definition at line 21 of file Sequence.cs.

◆ randomizeOrder

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.


The documentation for this class was generated from the following file: