From c291109ffb6aa5d533b8751c83c53c9a6d7cf824 Mon Sep 17 00:00:00 2001 From: Piegames <14054505+piegamesde@users.noreply.github.com> Date: Tue, 24 Apr 2018 00:04:59 +0200 Subject: [PATCH] Fixed player death sounds --- Assets/Scripts/Entities/Player.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Entities/Player.cs b/Assets/Scripts/Entities/Player.cs index 2f0fe01..154909f 100644 --- a/Assets/Scripts/Entities/Player.cs +++ b/Assets/Scripts/Entities/Player.cs @@ -78,7 +78,10 @@ public class Player : Mob { /// protected override void Death() { Debug.Log("Player died..."); - Destroy(this.gameObject); + Destroy(this.gameObject); + GameController.instance.GetAudioControl().SfxStop(AudioControl.Sfx.slowdriving); + GameController.instance.GetAudioControl().SfxStop(AudioControl.Sfx.driving); + GameController.instance.GetAudioControl().SfxPlay(AudioControl.Sfx.explosion); GameController.instance.EndGame(GameController.EndedCause.DIED); } }