Exemple #1
0
        public void Buy()
        {
            int addAmount = _serviceWindow.BuyItem(_usableItem);

            _amount += addAmount;
            RefreshText(_amount);
        }
        public void Buy()
        {
            int addAmount = _serviceWindow.BuyItem(_element);

            _playerAmount += addAmount;
            if (addAmount > 0)
            {
                OnSelect(null);
            }
        }