update states and transition for AnimatorEvents