I'm writing little fps game in Unity 5.3.5. So, I've got my gun object and two animations, idle and shot. I've got transition from idle to shot with trigger condition and "Has Exit Time" unchecked. In the idle animation after few seconds gun do some cowboy-style spinning. Problem is, when I fire my trigger during the spin, shot animation starts exactly from point where idle animation was interrupted, which causes shooting to the sky or to the ground.
I know i can make no transitions and do everything from code, and reset every animation to start position before playing another, but is this elegant way to do such a thing? Are there any good practices someone could share with me?