1
0
Fork 0

Fixed player death sounds

This commit is contained in:
Piegames 2018-04-24 00:04:59 +02:00
parent ea919ab215
commit c291109ffb

View file

@ -78,7 +78,10 @@ public class Player : Mob {
/// </summary>
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);
}
}