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