Exemple #1
0
 public void checkWin()
 {
     if (!DeathScript.player)
     {
         return;
     }
     if (enemyNB > 0)
     {
         return;
     }
     MenuManagerScript.mm.setMissionCompleteMenu(true);
     DeathScript.playSound(winSound);
     DeathScript.DestroyPlayer();
     enemyNB = -1;
 }
Exemple #2
0
 public void lose()
 {
     DeathScript.playSound(loseSound);
     Time.timeScale = 0.1f;
 }