public static bool AnimationIsFinished(this Animator animator, string animationName, int layer = 0)
 {
     return(animator.IsPlayingAnimation(animationName, layer) && animator.AnimationIsFinished(layer));
 }