Used in StateMachine. Contains functions for enter, update, and exit.
More...
|
| State (Action onEnter=null, Action onUpdate=null, Action onExit=null) |
| Create a new State with three Actions. More...
|
|
| State (Action onUpdate) |
| Create a new State with just an update Action. More...
|
|
void | Functions (Action onEnter, Action onUpdate, Action onExit) |
| Set all three of the methods for enter, update, and exit. More...
|
|
void | Update () |
| Call OnUpdate. More...
|
|
void | Enter () |
| Call OnEnter. More...
|
|
void | Exit () |
| Call OnExit. More...
|
|
|
Action | OnEnter = delegate { } |
| The method to call when entering this state. More...
|
|
Action | OnUpdate = delegate { } |
| The method to call when updating this state. More...
|
|
Action | OnExit = delegate { } |
| The method to call when exiting this state. More...
|
|
|
int | Id [get, set] |
| The Id that this state has been assigned. More...
|
|
Used in StateMachine. Contains functions for enter, update, and exit.
Otter.State.State |
( |
Action |
onEnter = null , |
|
|
Action |
onUpdate = null , |
|
|
Action |
onExit = null |
|
) |
| |
Create a new State with three Actions.
- Parameters
-
onEnter | The method to call when entering this state. |
onUpdate | The method to call when updating this state. |
onExit | The method to call when exiting this state. |
Otter.State.State |
( |
Action |
onUpdate | ) |
|
Create a new State with just an update Action.
- Parameters
-
onUpdate | The method to call when updating this state. |
void Otter.State.Enter |
( |
| ) |
|
void Otter.State.Exit |
( |
| ) |
|
void Otter.State.Functions |
( |
Action |
onEnter, |
|
|
Action |
onUpdate, |
|
|
Action |
onExit |
|
) |
| |
Set all three of the methods for enter, update, and exit.
- Parameters
-
onEnter | The method to call when entering this state. |
onUpdate | The method to call when updating this state. |
onExit | The method to call when exiting this state. |
void Otter.State.Update |
( |
| ) |
|
Action Otter.State.OnEnter = delegate { } |
The method to call when entering this state.
Action Otter.State.OnExit = delegate { } |
The method to call when exiting this state.
Action Otter.State.OnUpdate = delegate { } |
The method to call when updating this state.
The Id that this state has been assigned.
The documentation for this class was generated from the following file:
- Otter/Components/StateMachine.cs