Question by
arkadsgames · Apr 08, 2018 at 01:49 PM ·
animationanimator controlleranimation events
Do not call animation event.
Hey guys, i'm doing some tests and i made a fire gun animation, in the first frame have an event that trigger the fire in code, until here it's every thing ok, but the problem is, when the animation start, it have a transition from the last state, so when the gun, start to move, it shot already, and it wasn't in the correct position yet, so the shot code is called with the gun pointing down. what can i do for the gun just fire when animator isn't in transition?
Animation
Transition
screenshot-102.png
(30.1 kB)
screenshot-103.png
(19.2 kB)
Comment