Struct StateInformation
The StateInformation is a struct created for state change requests. It holds the information of the request to the statemachine.
Namespace: Static
Assembly: Assembly-CSharp.dll
Syntax
public struct StateInformation
Constructors
| Improve this Doc View SourceStateInformation(String, String, InteractionType, String, GameObject, GameObject)
Constructor of the StateInformation struct.
Declaration
public StateInformation(string primaryObjectName = "", string secondaryObjectName = "", InteractionType interactionType = InteractionType.Custom, string parameter = " ", GameObject firstGameObject = null, GameObject secondGameObject = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | primaryObjectName | |
| System.String | secondaryObjectName | |
| InteractionType | interactionType | |
| System.String | parameter | |
| GameObject | firstGameObject | |
| GameObject | secondGameObject |
Fields
| Improve this Doc View SourcefirstGameObject
The primary GameObject request of this request.
Declaration
public GameObject firstGameObject
Field Value
| Type | Description |
|---|---|
| GameObject |
interactionType
The type of interaction that is requested.
Declaration
public InteractionType interactionType
Field Value
| Type | Description |
|---|---|
| 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.
Declaration
public string parameter
Field Value
| Type | Description |
|---|---|
| System.String |
primaryObjectName
The primary object of this request.
Declaration
public string primaryObjectName
Field Value
| Type | Description |
|---|---|
| System.String |
secondaryObjectName
The secondary object of this request (e.g. for a combination, the object that is not grabbed)
Declaration
public string secondaryObjectName
Field Value
| Type | Description |
|---|---|
| System.String |
secondGameObject
The secondary GameObject request of this request.
Declaration
public GameObject secondGameObject
Field Value
| Type | Description |
|---|---|
| GameObject |