Update StateMachine.as