Esempio n. 1
0
 public void TakeDamage(int amount)
 {
     currentHealth -= amount;
     UIEventHandler.DamageTaken(currentHealth);
     Debug.Log(amount);
     if (currentHealth <= 0)
     {
         Die();
     }
 }