Skip to content
Snippets Groups Projects
Commit 795972b0 authored by Juliette Marx's avatar Juliette Marx
Browse files

jhu

parent 06fa8239
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ using System.Collections.Generic; ...@@ -3,7 +3,7 @@ using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.InputSystem; using UnityEngine.InputSystem;
using UnityEngine.UI; using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class ScreenP1Controller : MonoBehaviour public class ScreenP1Controller : MonoBehaviour
{ {
//Valable pour un seul patient : la mamie //Valable pour un seul patient : la mamie
...@@ -29,6 +29,8 @@ public class ScreenP1Controller : MonoBehaviour ...@@ -29,6 +29,8 @@ public class ScreenP1Controller : MonoBehaviour
public HealthBar_1 healthBar; public HealthBar_1 healthBar;
public void UpdateTasksToDo() public void UpdateTasksToDo()
{ {
if(10.0f < chrono & chrono < 11.0f) if(10.0f < chrono & chrono < 11.0f)
...@@ -72,7 +74,7 @@ public class ScreenP1Controller : MonoBehaviour ...@@ -72,7 +74,7 @@ public class ScreenP1Controller : MonoBehaviour
if (chrono > 120.0f & textReanimation.enabled == true) if (chrono > 120.0f & textReanimation.enabled == true)
{ {
healthBar.Heal(0); healthBar.Heal(0);
//mort du patient SceneManager.LoadScene("SceneGameOver");
} }
...@@ -112,7 +114,8 @@ public class ScreenP1Controller : MonoBehaviour ...@@ -112,7 +114,8 @@ public class ScreenP1Controller : MonoBehaviour
if (chrono > 458.0f & textPerfusion.enabled == true) if (chrono > 458.0f & textPerfusion.enabled == true)
{ {
healthBar.Heal(0); healthBar.Heal(0);
//mort du patient
SceneManager.LoadScene("SceneGameOver");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment