- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
youyouzizi · Feb 06, 2015 at 11:42 AM ·
animationanimatortrigger
Animator.SetTrigger more than once in a frame
I use Animator.SetTrigger to play an animation on a player with an Animator. Sometimes he may play more than one animation in a frame, and I want he play the last one.
He uses a skill, I let him play a skill animation, and an enemy may attack him later in the same frame, so he will play a hurt animation.
An enemy attack him , he plays a hurt animation, but he use a skil that grants immunity from any damage later in the same frame, so he will play a skill animation.
The problem is not always the last animation is played. Can anyone tell me how to do? Thank you!
Comment