Skip to content
Snippets Groups Projects
Commit ff76dc02 authored by GIMENEZ TANGUY's avatar GIMENEZ TANGUY
Browse files

truc

parent 6871e7ab
No related merge requests found
......@@ -30,11 +30,20 @@ public class Dialog : MonoBehaviour
"Je fais un test pour le niveau 1",
"Ca marche bien nan ?",
"Melvyn t moch",
"Valentin aussi"
"Valentin aussi",
"Raff est pas bo"
};
this.ListDialogs.Add("sceneTanguy", DialogsLvl1);
string[] Dialogsraff = {
"Salut",
"cava ?",
"Je te mange tes morts"
};
this.ListDialogs.Add("Niveau2", Dialogsraff);
if (this.dialogActive)
this.dialogText.text = this.ListDialogs[SceneManager.GetActiveScene().name][0];
}
......
......@@ -44,7 +44,7 @@ public class PlayerNature : MonoBehaviour
void Update()
{
//on
//toutes les x secondes => on perd un certain nombre de secondes
if (Time.time > nextActionTime)
{
nextActionTime += period;
......@@ -57,10 +57,13 @@ public class PlayerNature : MonoBehaviour
}
// Perd un certain nombre de points de nature
public void LooseNature(int damage)
{
this.currentNature -= damage;
if(this.currentNature < 0)
this.currentNature = 0;
this.natureBar.SetValue(this.currentNature);
}
......
......@@ -17,6 +17,9 @@ EditorUserSettings:
RecentlyUsedScenePath-3:
value: 22424703114646680e0b0227036c71190012193f7e66333e243d04
flags: 0
RecentlyUsedScenePath-4:
value: 22424703114646680e0b0227036c72151802563f22213229
flags: 0
vcSharedLogLevel:
value: 0d5e400f0650
flags: 0
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment