State Machine
Namespace
namespace Handy2DTools.Actions{}
Declaration
public class StateMachine : MonoBehaviour {}
Fields
|
|
The actor related to this state machine |
|
|
The machine current status |
|
|
A visual feedback for inspector |
|
|
The default state to be set using inspector |
|
|
Visual feedback |
|
|
List of states attached to the machine’s GameObject. |
Properties
|
|
The state machine’s actor instance. |
|
|
A getter for the machine’s status |
|
|
The machine’s current state |
|
|
A getter for |
|
|
The list of attached states |
|
|
The machine’s actor. Either attached to |
Methods
|
|
Called by the Actor to initialize the machine |
Arguments: |
||
|
|
Loads all states attached into the machine’s GameObject. |
|
|
If the machine is ready, sets the |
|
|
|
|
|
|
|
|
|
|
|
Sets the |
Arguments: |
||
|
|
Case any condition of the |
|
|
Checks the |
|
|
Sets the |
Arguments: |
||
|
|
Called every Actor |
|
|
Called every Actor |
|
|
Called every Actor |
Events
|
|
Invoked every time the machine changes the |