unity check if animation is finished animator state info code example
Example: how to know if the animator playing animation unity
bool AnimatorIsPlaying(){ return animator.GetCurrentAnimatorStateInfo(0).length > animator.GetCurrentAnimatorStateInfo(0).normalizedTime; }