I have a animation of 80 frames and when I press the up key it plays the animation but after the 80 frames it goes back to the idle so, if I hold the up key down it plays the 80 frames and while holding the up key it the game switched back to idle until I repress the up key and starts the process again.
I have put the walk animation to loop itself.
my code:if (Input.GetKeyDown ("up")) { anim.Play ("walk"); }
And anim is a reference to the animator component