How can i check if an animator has finished?

I need to check when the animation has finished in this context
but if i use normalized.time i can’t tell which animation should check

Edit: basically my character while walking rotates in the desired direction WASD. When he attacks "Fire1 his movement is reset, but he has the ability to rotate towards the direction. I want him to only rotate when his attack on him (it’s a single looped punch) resumes. So I need to check when the animation ends

if (movementDirection != Vector3.zero && anim.GetCurrentAnimatorStateInfo(0).IsName("MyAnim"))

I SOLVED.
with Event animation.

Ias I took an external animation and it was only in READ ONLY.
I created another one and copied the keyframes in order to have an “open source” animation

Add an Event to the end of the animation Unity - Manual: Using Animation Events

Just for the record, if anyone needs it in the future: you can check a given animator state by using runtimeAnimatorStateController, i.e. you can check whether your animator is playing a certain state/animation or not.
EDIT: If you have an issue with continous checks or something like that, here’s some gold for you: check the OnStateExit API, thank me later :slight_smile: