Class StateChange
A helper component designed for quickly allowing control over a StateMachine by hooking it up to UI objects through either static or dynamic function assignment.
Inheritance
System.Object
StateChange
Namespace: ScriptableFramework
Assembly: cs.temp.dll.dll
Syntax
public class StateChange : MonoBehaviour
Fields
stateMachine
The StateMachine to be controlled by the UI object.
Declaration
public StateMachine stateMachine
Field Value
Type | Description |
---|---|
StateMachine |
Methods
UpdateStateMachine(Boolean)
Updates the GameObjects under the state machine.
Declaration
public void UpdateStateMachine(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | The value to apply the same state to all GameObjects in the current list. |
UpdateStateMachine(Int32)
Updates the GameObjects under the state machine.
Declaration
public void UpdateStateMachine(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The index to update the state machine to. |