Class representing a state in a state machine. Through this class you can also access behaviours attached to a state.
Type | Name | Parameters |
---|---|---|
FSMC_State | FSMC_State | string name |
Type | Name | Description |
---|---|---|
string | Name | Name of a state (read only) |
List | TransitionsFrom | List of transitions coming out of this state |
List | TransitionsTo | List of transitions coming into this state |
Type | Name | Parameters | Description |
---|---|---|---|
FSMC_Behaviour | GetBehaviour | Type type | Returns first behaviour of that type on this state |
T |
GetBehaviour | A generic version of GetBehaviour | |
FSMC_Behaviour[] | GetBehaviours | Returns all behaviours of that state | |
FSMC_Behaviour[] | GetBehaviours | Type type | Returns all behaviours of given type on this state |
T[] |
GetBehaviours | Generic version of GetBehaviours | |
void | AddBehaviour | FSMC_Behaviour behaviour | Adds already created instance of a behaiour |
void | AddBehaviours | FSMC_Behaviour[] behaviours | Adds all already created instances of a behaiours |
void | AddBehaviour | Type type | Creates and adds instance of a behaviour if a given type |
void |
AddBehaviour | Generiv version of AddBehaviour |