StateMachine

The StateMachine class is a finite state machine implementation that allows defining states and transitions between them, and activating a specific state based on its transitions conditions.

Examples

AI Town

ai simulation spawner image

code

  • AI state machine

  • coroutine for food interval spawn

AI Simulation

ai simulation spawner image

code

  • fog of war shader

  • AI state machine

  • coroutine for food interval spawn