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