Esempio n. 1
0
 public void TakeDam(int amount)
 {
     damaged    = true;
     currentHP -= amount;
     uI.updateHP(currentHP);
     if (currentHP <= 0 && !isDead)
     {
         Death();
     }
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     testedBehaviors.newWaveNotification();
     testedBehaviors.updateEnemies(69);
     testedBehaviors.updateHP(18);
 }