Simple State with optional lambda arguments for OnStateEnter and OnStateExit.
More...
|
| | LambdaState (string name, Action onStateEnter=null, Action onStateExit=null) |
| |
| | State () |
| | Create a state with the default name More...
|
| |
| | State (string name) |
| | Create a state with a custom name rather than the default More...
|
| |
| void | OnEnter () |
| | Called when the state is entered More...
|
| |
| void | OnExit () |
| | Called when the state is exited, before the next state is entered More...
|
| |
| virtual void | Update () |
| | This can be called every frame or whenever for complex states that have behavior on a frame by X basis. More...
|
| |
| void | SetVerbose (bool isVerbose) |
| | Set whether the state machine is verbose or not More...
|
| |
|
| virtual string | DefaultName => "State" |
| |
| string | Name [get, private set] |
| | Name of the state. This will either be user defined or the default state name depending on the constructor used More...
|
| |
Simple State with optional lambda arguments for OnStateEnter and OnStateExit.
Definition at line 8 of file LambdaState.cs.
◆ LambdaState()
| BGC.StateMachine.LambdaState.LambdaState |
( |
string |
name, |
|
|
Action |
onStateEnter = null, |
|
|
Action |
onStateExit = null |
|
) |
| |
|
inline |
Definition at line 13 of file LambdaState.cs.
readonly Action onStateExit
readonly Action onStateEnter
◆ OnStateEnter()
| override void BGC.StateMachine.LambdaState.OnStateEnter |
( |
| ) |
|
|
protectedvirtual |
◆ OnStateExit()
| override void BGC.StateMachine.LambdaState.OnStateExit |
( |
| ) |
|
|
protectedvirtual |
◆ onStateEnter
| readonly Action BGC.StateMachine.LambdaState.onStateEnter |
|
private |
◆ onStateExit
| readonly Action BGC.StateMachine.LambdaState.onStateExit |
|
private |
The documentation for this class was generated from the following file: