Stop movement of character on specific animation

How to stop the movement of character when playing a specific animation?

@aaron_kotch
Use something like this:

//  on your player controller have a reference to your animator
//  and stick this code before any movement is preformed


if(anim.GetCurrentAnimatorStateInfo(0).IsName("The name of your animation clip you want to freeze upon")
{
      return;
}