Closed james7132 closed 6 years ago
is there something that already handles sounds for when a move is used that doesn't necessarily collide with anything?
Good point. I've been considering using https://blogs.unity3d.com/2017/06/06/unity-2017-1-beta-feature-highlight-timeline-cinemachine/ to define attacks instead of simple animations. This would allow orchestrating not only animations, but virtually everything about a character.
(The above link mentions beta, but this is now officially part of the engine as of the release of 2017.1)
Hitboxes support binding arbitrary sound and visual effects now.
This will be the easiest way to add hitsounds: attach an audio source to the hitbox object, which will automatically play when it collides with a valid object.