uw-state-machine

Community

Build robust Unity state machines for game flow.

Authordevdavv
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Managing game, AI, and UI state transitions in Unity can become error-prone as complexity grows. This Skill provides a clean, interface-based approach to define states, transitions, and lifecycle behavior for consistent game flow.

Core Features & Use Cases

  • Interface-driven state definitions with IState and IUpdatableState
  • A reusable StateMachine that ensures a single active state and supports asynchronous transitions
  • Clear guidance for DI-first (uw-dependency-injection) or SO-first integration in Unity projects
  • Practical patterns for GameFlow (menu -> gameplay -> game over), Character States (Idle/Run/Jump), and UI Screen Flows
  • Best practices for cancellation tokens, cleanup, and error handling

Quick Start

Create a StateMachine, define initial states, and wire up a Lobby -> GamePlay -> GameOver flow in your Unity project.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: uw-state-machine
Download link: https://github.com/devdavv/unity-ai-workflow/archive/main.zip#uw-state-machine

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.