void WineCorn() { if (_whm.capPrices["Corn"] > 8) { _whm.buyPrices["Corn"] -= 2; _whm.capPrices["Corn"] -= 3; _whm.Buy(_wineAndDinePrice); _whm.ChangeVeggiePrice("Corn", 0); _modifyOrder.UpdatePrices(); _wineAndDinePrice = Mathf.RoundToInt(_wineAndDinePrice * 1.5f); _wine.transform.Find("Text").GetComponent <Text>().text = _originalWineText + " ($" + _wineAndDinePrice + ")"; if (_whm.Money < _wineAndDinePrice) { _wineCorn.interactable = false; _wineBeets.interactable = false; _wineSquash.interactable = false; } } }