reset animation unity code example
Example 1: unity replay non looping animation
anim.Play("Animation", -1, 0f);
Example 2: reset animator unity
animator.Play("anim", -1, 0f);
anim.Play("Animation", -1, 0f);
animator.Play("anim", -1, 0f);