Update Health.cs

main
Ali Sharoz 2 months ago
parent b11b550b05
commit ed884de015

@ -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)

Loading…
Cancel
Save