public void AddCoins(int value) { if (value < 0) { throw new ArgumentException("Try Add negative coins value"); } model.CoinsCount += value; OnCoinsUpdated?.Invoke(model.CoinsCount); }
public void UpdateCoins(int value) { OnCoinsUpdated?.Invoke(value); }