Exemple #1
0
 void Update()
 {
     if (enemyManager.isTutorial())
     {
         healthDisplay.setHealth("");
         if (enemyManager.CurrentWave() == 1)
         {
             healthDisplay.setScore("Shoot enemies\non the beat");
         }
         if (enemyManager.CurrentWave() == 2)
         {
             healthDisplay.setScore("Some enemies\nmove on the beat");
         }
         if (enemyManager.CurrentWave() == 3)
         {
             healthDisplay.setScore("Enemies can\nappear together");
         }
     }
     else
     {
         healthDisplay.setScore("Score: " + player.Score);
         healthDisplay.setHealth("Multiplier: " + (float)player.Health / 100f + "x");
     }
 }