Today’s implementation:
Image animation
In Dark Souls, there’s no limit to how much you can use your weapon with that hand, and in our project, right hand attacks are only available, but next we’re going to use mirror animations for left hand attacks.
If you select the animation node, you can see that there is a Mirror option in the inspector window. If you select Mirror, our animation will be mirrored. We want to be able to control it from a script.
If we don’t check the Mirror and check the Parameter after it, we can use animator parameters (if bool) to control it. We can easily control animator parameters in code (anim.setbool).
Add a bool mirror parameter to control which animation nodes to mirror, in this case our three attack animations. We only need to control the mirror parameter to control whether to attack with the right hand or the left hand.