Example #1
0
 public void Buy()
 {
     if (InventoryManager.main.BuyItem(inventoryItem))
     {
         buyButtonContainer.SetActive(false);
         SoundManager.main.PlaySound(SoundType.BuyGun);
         if (buyAmmoButton.isActiveAndEnabled)
         {
             buyAmmoButton.EnableButton();
         }
         buyButton.DisableButton();
     }
 }