Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Animator - check when the animation is finished

$
0
0
Hey!

I got a Animator tree that is like this:
Walk <-> Attack 1 <-> Attack_1_rest -> Walk
What I'm trying to do is to make the attack do damage when the animation is finished or maybe in the middle of the animation - depends on the character and animation.
I know how to make the character do damage and such, but I don't know how do for example this "fantasy" Script:

Code (CSharp):
  1. if (animation_is_finished == true) {
  2. "Booom do damage"
  3. }
I have searched and all the examples I can find is...

Animator - check when the animation is finished

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>