|
|
@ -169,12 +169,12 @@ namespace D2D.Gameplay
|
|
|
|
Died?.Invoke();
|
|
|
|
Died?.Invoke();
|
|
|
|
if (!_isPlayer)
|
|
|
|
if (!_isPlayer)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
float pitch = UnityEngine.Random.Range(0.8f, 1.2f);
|
|
|
|
//float pitch = UnityEngine.Random.Range(0.8f, 1.2f);
|
|
|
|
if (_enemySpawn.EnemyDeathAudio != null)
|
|
|
|
//if (_enemySpawn.EnemyDeathAudio != null)
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
_enemySpawn.EnemyDeathAudio.pitch = pitch;
|
|
|
|
// _enemySpawn.EnemyDeathAudio.pitch = pitch;
|
|
|
|
_enemySpawn.EnemyDeathAudio.Play();
|
|
|
|
// _enemySpawn.EnemyDeathAudio.Play();
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
HapticPatterns.PlayPreset(HapticPatterns.PresetType.MediumImpact);
|
|
|
|
HapticPatterns.PlayPreset(HapticPatterns.PresetType.MediumImpact);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (_isGrayFadeout)
|
|
|
|
if (_isGrayFadeout)
|
|
|
|