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:
I have searched and all the examples I can find is...
Animator - check when the animation is finished
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):
- if (animation_is_finished == true) {
- "Booom do damage"
- }
Animator - check when the animation is finished