unity how to tell when an animation ends code example
Example: how to know if the animator playing animation unity
bool AnimatorIsPlaying(){ return animator.GetCurrentAnimatorStateInfo(0).length > animator.GetCurrentAnimatorStateInfo(0).normalizedTime; }