Exemplo n.º 1
0
 public void TakeDamage(float amount)
 {
     enemy.HP -= amount;
     if (enemy.HP <= 0f)
     {
         enemy.Die();
     }
 }