State Machine System for Unity