public void DecreaseLife() { if (_lifeRuntime < 0) { _lifeRuntime = 0; return; } _lifeRuntime--; OnChangedLife?.Invoke(_lifeRuntime); }
public void AddLife(int amount) { _lifeRuntime += amount; OnChangedLife?.Invoke(_lifeRuntime); }