From 83a3369d2ffdf523288b24bcbc781f0db84007f2 Mon Sep 17 00:00:00 2001 From: GIMENEZ TANGUY <tanguy.gimenez@etu.unistra.fr> Date: Mon, 29 Mar 2021 15:52:01 +0200 Subject: [PATCH] On commence l'animation de game over --- Assets/Scripts/Player/PlayerNature.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Player/PlayerNature.cs b/Assets/Scripts/Player/PlayerNature.cs index 095bbef..bf5afe0 100644 --- a/Assets/Scripts/Player/PlayerNature.cs +++ b/Assets/Scripts/Player/PlayerNature.cs @@ -53,7 +53,7 @@ public class PlayerNature : MonoBehaviour } if (this.currentNature < 0) - Debug.Log("qsidjgbisdfjghb"); + GameOver(); } // Perd un certain nombre de points de nature @@ -75,6 +75,14 @@ public class PlayerNature : MonoBehaviour this.natureBar.SetValue(this.currentNature); } + private void GameOver() + { + + } + + + + // Singleton private void Awake() @@ -87,4 +95,6 @@ public class PlayerNature : MonoBehaviour instance = this; } + + } -- GitLab