Class MoveState
- Namespace
- WitShells.DesignPatterns.Core
Example IState — represents an entity in motion. Replace the placeholder comments with your own movement behaviour.
public class MoveState : IState
- Inheritance
-
MoveState
- Implements
- Inherited Members
Methods
Enter()
Called once when the state machine transitions into this state.
public void Enter()
Execute()
Called every frame (or update tick) while this state is active.
public void Execute()
Exit()
Called once when the state machine transitions out of this state.
public void Exit()