예제 #1
0
 public void TakeDamage(int amount)
 {
     health.AddValue(-amount);
     if (health.GetValue() <= 0)
     {
         onDeath.Invoke();
     }
 }