Fixed player death sounds
This commit is contained in:
parent
ea919ab215
commit
c291109ffb
1 changed files with 4 additions and 1 deletions
|
@ -79,6 +79,9 @@ public class Player : Mob {
|
|||
protected override void Death() {
|
||||
Debug.Log("Player died...");
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue