- Home /
How do I check if an Animation is playing in an animator
I want to know when the shoot animation is playing so I could know when to fire again(Im making a hold to fire weapon) I used If(GetComponent<Animator>().GetCurrentAnimatorStateInfo(0).IsName("Shoot"))
but still it doesn't work.
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
3d Animated Jump Script 0 Answers
Animator transition help 0 Answers
Animation keeps repeating 2 Answers
Efficient way to instantiate a sprite that plays an animation then destroys itself? (3d space) 1 Answer