public void AddCoins(int value)
        {
            if (value < 0)
            {
                throw new ArgumentException("Try Add negative coins value");
            }

            model.CoinsCount += value;
            OnCoinsUpdated?.Invoke(model.CoinsCount);
        }
예제 #2
0
 public void UpdateCoins(int value)
 {
     OnCoinsUpdated?.Invoke(value);
 }