// \IPlayerCharacter // IDisposable void IDisposable.Dispose() { NumLives.Dispose(); Health.Dispose(); Position.Dispose(); IsActive.Dispose(); }
public void TakeDamage(int damage) { _hp.Value -= damage; if (_hp.Value <= 0) { _hp.Dispose(); Destroy(gameObject); } }
public void Dispose() { TimeReactiveProperty?.Dispose(); TimerDisposable?.Dispose(); }