PitchChange of EnemyDeath Randomized

dev-ali
Ali Sharoz 2 months ago
parent 92b9a98bc3
commit b11b550b05

@ -169,7 +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();
}
HapticPatterns.PlayPreset(HapticPatterns.PresetType.MediumImpact);
}
if (_isGrayFadeout)

@ -189447,7 +189447,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1984993047125568119, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_AnchoredPosition.y
value: 2.2411957
value: 2.241211
objectReference: {fileID: 0}
- target: {fileID: 1991915019850540130, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_AnchorMax.x

Loading…
Cancel
Save