i’m pretty new at Unity and i have this thing that i just couldn’t figure out myself: how do you script a button, so that when it’s pressed, it’ll show an (pre-made) animation? (so if you press ‘forward’ a walking animation starts and when you release the button, the animation’ll stop playing) and is it possible to script this inside of the FPSwalker script?
The script is applied to the object it’s attached to - and the fps script is attached to a capsule which you can’t see. If you want that capsule to be animated, go ahead
I’d recommend putting it all in a separate script and applying that script to the object you want animated.