StateMachine for Hero animation