Design Patterns: State Pattern

The State Design Pattern revolves around controlling behaviour through the use of a currently active state, rather than individual conditional checks.

States Overview:

Transitions Overview:

  • An animation clip finishes playing.
  • A destination/goal is reached.
  • An event occurs.
  • A player input is detected.

Types of State Patterns:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vincent Taylor

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.