示例#1
0
 public void TakeDamage(int amount)
 {
     _current -= amount;
     OnChange.Invoke();
     if (Current <= 0)
     {
         OnDeath.Invoke();
         _sfx.Breaking();
         Destroy(gameObject, delayDestroy);
     }
 }