Add sound effects and audio clips for weapons and actions; implement shot and damage sounds

This commit is contained in:
2025-07-13 13:33:29 +02:00
parent 7519d67950
commit 0ca0aeae86
3557 changed files with 8596 additions and 1314011 deletions

View File

@@ -14,6 +14,13 @@ namespace Weapons
{
var finalRange = GetFinalRange();
var hits = Physics2D.OverlapCircleAll(transform.position, finalRange, targetMask);
var hitAnybody = hits.Length > 0;
if (hitAnybody)
{
PlayShotSound();
}
foreach (var hit in hits)
{
hit.TryGetComponent<Health>(out var health);