Hey guys, i'm rigging animations for my game, and i'm having some troubles with the Animator.
For every weapon switching in the game i've got an animation of old weapon going in the ship, and the animation for new weapon coming out of the ship. So that's two animations.
Of course, i don't want the player to be able to shoot when the weapon is pulling in/drawing out, so when the weapon goes in, animator goes into "idle" state, then i use Get Animator Current State Info i compare the state name every frame, and when it matches with "idle", i start the animation of weapon coming out.
The thing is, i can't use the "idle" logic on this one, since the animator needs to stay on the last frame of the animation (gun completely pulled out, no loop time animation) until the next weapon switch.
So, any ideas how to get the info on the moment the animation hits the last frame? Is it normalized time = 1?