public void AddHp(int amount) { _hpRuntime += amount; if (_hpRuntime >= _currentMaxHpRunTime) { _hpRuntime = _currentMaxHpRunTime; } OnChangedHp?.Invoke(_hpRuntime); }
public void ResetHp() { _hpRuntime = _currentMaxHpRunTime; OnChangedHp?.Invoke(_hpRuntime); }
public void DecreaseHp(int amount) { _hpRuntime -= amount; OnChangedHp?.Invoke(_hpRuntime); }