Animation events and synclayers

I have an animation that shoots a fireball at a given frame. I got rid of the synclayer for this animation and the event works. Unfortunately, I want to loop the animation so the user can hold the fire button and shoot fireballs until he let's go. However, once you press the fire button, the animation loops forever. Is there a way so that I can accomplish this without the use of the sync layers?

You can add an Animation Event on the last frame of the animation to check and see if the fire button is being held down. If it is, then tell the animation to Play() the AnimationClip again, otherwise do nothing and the animation will finish. For this to work, the AnimationClip's wrapmode should be set to either default or Once.

Cheers,

==