public void UpgradeButtonClicked() { if (goldManager.IsEnoughGold(upgradePrice)) { Debug.Log("Upgrade " + name); pb.BarValue += 1; goldManager.DecreaseGold(upgradePrice); } }