How do I get my UI Button to play my "fire animation" once?

I have a ninja in my scene and I have a “fire” button. I want to click on the button and have him fire once. the projectile fires once as does the sound clip, but the animation plays once and then stays. Basically the problem is that I have a bool attached to my animation. I can only get the “on click function” to set the bool to “true” but i cant set it back to “false” thereafter.

Don’t use a bool. Instead, use a trigger for the animation. The triggers work just like a bool, except once the animation starts playing its set to false.

Have a look at this page:

I figured it out. What I was looking for and needed were EVENT TRIGGERS!!! omg so simple!