What does “Has Exit Time” do in the Animator Controller?
When exit time is ticked,if the animation is completed then the next animation is played.
See image below
Run to Attact (exit time is unchecked)
Attact to Run (exit time checked)
If run animation is ended,attacked animation will not be played.It may be looped by the settings.
After the attack animation is finished playing , then Run animation is automatically played.