Exemplo n.º 1
0
 public void Upgrade()
 {
     if (statusBar.UpgradeCloneMachine(cost, production))
     {
         currentLevelText.SetText("LEVEL " + currentLevel);
         currentLevel++;
         cost = Mathf.Pow(currentLevel + 9, 2) / 35f;
         costText.SetText(Mathf.Ceil(cost).ToString());
         production = currentLevel * .1f;
         productionText.SetText(System.Math.Round(production, 2).ToString() + "/ S");
         currentSpeedText.SetText(System.Math.Round(statusBar.GetCurrentSpeed(), 2).ToString() + " / S");
     }
 }