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