public void BuyThisThing() { if (moneyCounter.shellen >= buildingCostShellen) { moneyCounter.shellen -= buildingCostShellen; shopScript.numBuildings[buildingType]++; } moneyCounter.UpdateText(); // Only increase the total buildings number / update the shellen per second count if this doesn't buy bread if (buildingType != 0) { shopScript.OnBuildingPurchase(); } else { buildingCostUSD += 12; } }