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

f

parent 6b0bc8b3
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class ScreenP2Controller : MonoBehaviour public class ScreenP2Controller : MonoBehaviour
{ {
...@@ -92,7 +93,7 @@ public class ScreenP2Controller : MonoBehaviour ...@@ -92,7 +93,7 @@ public class ScreenP2Controller : MonoBehaviour
{ {
healthBar.Heal(0); healthBar.Heal(0);
reanimerHomme.GetComponent<Renderer>().material.mainTexture = marron; reanimerHomme.GetComponent<Renderer>().material.mainTexture = marron;
//mort du patient car jauge de vie =0 SceneManager.LoadScene("SceneGameOver");
} }
...@@ -156,7 +157,7 @@ public class ScreenP2Controller : MonoBehaviour ...@@ -156,7 +157,7 @@ public class ScreenP2Controller : MonoBehaviour
if (chrono > 360.0f & textReanimation.enabled == true) if (chrono > 360.0f & textReanimation.enabled == true)
{ {
healthBar.Heal(0); healthBar.Heal(0);
//mort du patient car jauge de vie =0 SceneManager.LoadScene("SceneGameOver");
} }
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class ScreenP3Controller : MonoBehaviour public class ScreenP3Controller : MonoBehaviour
{ {
...@@ -133,7 +134,7 @@ public class ScreenP3Controller : MonoBehaviour ...@@ -133,7 +134,7 @@ public class ScreenP3Controller : MonoBehaviour
{ {
healthBar.Heal(0); healthBar.Heal(0);
thermometreFemme.GetComponent<Renderer>().material.mainTexture = blanc; thermometreFemme.GetComponent<Renderer>().material.mainTexture = blanc;
//Mort du patient car jauge de vie nulle SceneManager.LoadScene("SceneGameOver");
} }
} }
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class ScreenP4Controller : MonoBehaviour public class ScreenP4Controller : MonoBehaviour
{ {
...@@ -76,7 +77,7 @@ public class ScreenP4Controller : MonoBehaviour ...@@ -76,7 +77,7 @@ public class ScreenP4Controller : MonoBehaviour
{ {
healthBar.Heal(0); healthBar.Heal(0);
reanimerEnfant.GetComponent<Renderer>().material.mainTexture = marron; reanimerEnfant.GetComponent<Renderer>().material.mainTexture = marron;
//Mort du patient car jauge de vie nulle SceneManager.LoadScene("SceneGameOver");
} }
...@@ -138,7 +139,7 @@ public class ScreenP4Controller : MonoBehaviour ...@@ -138,7 +139,7 @@ public class ScreenP4Controller : MonoBehaviour
{ {
healthBar.Heal(0); healthBar.Heal(0);
perfusionEnfant.GetComponent<Renderer>().material.mainTexture = blanc; perfusionEnfant.GetComponent<Renderer>().material.mainTexture = blanc;
//Mort du patient car jauge de vie nulle SceneManager.LoadScene("SceneGameOver");
} }
...@@ -188,7 +189,7 @@ public class ScreenP4Controller : MonoBehaviour ...@@ -188,7 +189,7 @@ public class ScreenP4Controller : MonoBehaviour
{ {
healthBar.Heal(0); healthBar.Heal(0);
tensionEnfant.GetComponent<Renderer>().material.mainTexture = cyan; tensionEnfant.GetComponent<Renderer>().material.mainTexture = cyan;
//Mort du patient car jauge de vie nulle SceneManager.LoadScene("SceneGameOver");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment