Unity State Machine Patterns
Overview
State machines manage game flow, UI navigation, and entity behavior. This skill covers safe implementation patterns for async state transitions and proper cleanup.
When to Use
- Game state management (menu, loading, gameplay)
- UI navigation flows
- AI behavior states
- Animation state control
- Feature/activity controllers
Basic State Machine
State Interface
public interface IState
{
UniTask Enter(IStateTransitionData dat
[Description truncada. Veja o README completo no GitHub.]