Skip to content
Snippets Groups Projects
Commit f70777d4 authored by Lilian BICHOT's avatar Lilian BICHOT
Browse files

UI changes + life changes

parent b4fb4669
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -28,7 +28,7 @@ public class LifeBobby : MonoBehaviour
void OnTriggerEnter2D (Collider2D Target){
if(Target.tag == "Bullet"){
LoseLife(10);
LoseLife(5);
}
if(Target.tag == "Plomb"){
LoseLife(5);
......@@ -38,7 +38,7 @@ public class LifeBobby : MonoBehaviour
}
if(Target.tag == "Explosion"){
LoseLife(300);
LoseLife(40);
}
}
......
......@@ -26,7 +26,7 @@ public class LifeClyde : MonoBehaviour
void OnTriggerEnter2D (Collider2D Target){
if(Target.tag == "Bullet"){
LoseLife(10);
LoseLife(5);
}
if(Target.tag == "Plomb"){
LoseLife(5);
......@@ -36,7 +36,7 @@ public class LifeClyde : MonoBehaviour
}
if(Target.tag == "Explosion"){
LoseLife(300);
LoseLife(40);
}
}
......
......@@ -22,14 +22,14 @@ public class LifeVillain : MonoBehaviour
void OnTriggerEnter2D (Collider2D Target){
if(Target.tag == "Bullet"){
LoseLife(10);
LoseLife(5);
}
if(Target.tag == "Plomb" && count_life > 0){
LoseLife(5);
}
if(Target.tag == "Explosion"){
LoseLife(300);
LoseLife(40);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment