Пример #1
0
 private void Buy()
 {
     if (CoinManager.Pay(_myItem.GetCosts()))
     {
         BuyButton.interactable = false;
         _myItem.Unlock();
         shopUi.SetCoinText(CoinManager.GetCoinTotal());
     }
     else
     {
         // Play sound or some shit.
     }
 }