Interface IState
- Namespace
- WitShells.DesignPatterns.Core
Defines the contract for a single state in the State Machine pattern. Each state owns its own entry, update, and exit logic, keeping behaviour self-contained and easy to extend.
public interface IState
Methods
Enter()
Called once when the state machine transitions into this state.
void Enter()
Execute()
Called every frame (or update tick) while this state is active.
void Execute()
Exit()
Called once when the state machine transitions out of this state.
void Exit()