I have a question regarding a throwing/shooting animation for a 2D platformer game. I have this “throw” sprite animation that I want to play when the user presses the fire button. The animation itself is such that there is an anticipation phase where the character leans back to put force behind his throw, followed by a forward motion where the character actually throws the object.
I was wondering whether it is possible to play the animation when the user presses the fire button and then only AFTER the animation has played out, create a “bullet” object that will fly through the scene. If it is possible, how would this be done in C# scripting? Is there some sort of callback mechanism I can use?
Many thanks in advance!