I want to do the same as this older post with one change:
Change the sprite of a Object in Unity
I want to use a .anim animation (created with unity) after the space key is pressed instead of another sprite. The problem is I can't drag the animation file to the sprite slot in the script component.
Thanks.