Пример #1
0
 void Update()
 {
     if (state == 1)
     {
         if (Player.getHealth() <= 0)
         {
             state = -1;
             GameOverScreen.SetActive(true);
         }
         else if (enemy.getHealth() <= 0)
         {
             state = -1;
             //PowerUpScreen.SetActive(true);
             BreakDamageSources();
         }
     }
 }
Пример #2
0
 // Update is called once per frame
 void Update()
 {
     PHealth.text = "" + player.getHealth() + "/" + player.getMaxHealth();
     EHealth.text = "" + enemy.getHealth() + "/" + enemy.getMaxHealth();
 }