From ed884de0158370d72f1a9a9f0890770dd084a47d Mon Sep 17 00:00:00 2001 From: Ali Sharoz Date: Thu, 5 Dec 2024 13:05:33 +0500 Subject: [PATCH] Update Health.cs --- Assets/3rd/D2D_Scripts/Gameplay/Health/Health.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/3rd/D2D_Scripts/Gameplay/Health/Health.cs b/Assets/3rd/D2D_Scripts/Gameplay/Health/Health.cs index 15265dc7..89c5a3ba 100644 --- a/Assets/3rd/D2D_Scripts/Gameplay/Health/Health.cs +++ b/Assets/3rd/D2D_Scripts/Gameplay/Health/Health.cs @@ -169,12 +169,12 @@ namespace D2D.Gameplay Died?.Invoke(); if (!_isPlayer) { - float pitch = UnityEngine.Random.Range(0.8f, 1.2f); - if (_enemySpawn.EnemyDeathAudio != null) - { - _enemySpawn.EnemyDeathAudio.pitch = pitch; - _enemySpawn.EnemyDeathAudio.Play(); - } + //float pitch = UnityEngine.Random.Range(0.8f, 1.2f); + //if (_enemySpawn.EnemyDeathAudio != null) + //{ + // _enemySpawn.EnemyDeathAudio.pitch = pitch; + // _enemySpawn.EnemyDeathAudio.Play(); + //} HapticPatterns.PlayPreset(HapticPatterns.PresetType.MediumImpact); } if (_isGrayFadeout)