Table of Contents

Struct StateInformation

Namespace
Static

The StateInformation is a struct created for state change requests. It holds the information of the request to the statemachine.

public struct StateInformation

Constructors

StateInformation(string, string, InteractionType, string, GameObject, GameObject)

Constructor of the StateInformation struct.

public StateInformation(string primaryObjectName = "", string secondaryObjectName = "", InteractionType interactionType = InteractionType.Custom, string parameter = " ", GameObject firstGameObject = null, GameObject secondGameObject = null)

Parameters

primaryObjectName string
secondaryObjectName string
interactionType InteractionType
parameter string
firstGameObject GameObject
secondGameObject GameObject

Fields

firstGameObject

The primary GameObject request of this request.

public GameObject firstGameObject

Field Value

GameObject

interactionType

The type of interaction that is requested.

public InteractionType interactionType

Field Value

InteractionType

parameter

The parameter that is passed with the request. E.g. for custom actions or questionnaires this can also be the only thing that is checked against by the statemachine.

public string parameter

Field Value

string

primaryObjectName

The primary object of this request.

public string primaryObjectName

Field Value

string

secondGameObject

The secondary GameObject request of this request.

public GameObject secondGameObject

Field Value

GameObject

secondaryObjectName

The secondary object of this request (e.g. for a combination, the object that is not grabbed)

public string secondaryObjectName

Field Value

string