Add sound effects and audio clips for weapons and actions; implement shot and damage sounds
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user