void _SetupDecreaseTimePriceAndBaseActivation(DroneUpgrades __droneUpgrades) { if (__droneUpgrades._GetBasicStats()._shorteningCoolingDownTimeLevel >= __droneUpgrades._GetBasicStats()._maxShorteningTimeLevel) { _decreaseTimePriceText.gameObject.SetActive(false); _decreaseTimeBaseText.gameObject.SetActive(false); } else { _decreaseTimePriceText.gameObject.SetActive(true); _decreaseTimeBaseText.gameObject.SetActive(true); } }
void _SetupEnginePriceAndBaseActivation(DroneUpgrades __droneUpgrade) { if (__droneUpgrade._GetBasicStats()._engineLevel >= __droneUpgrade._GetBasicStats()._maxEngineLvl) { _upgEngPriceText.gameObject.SetActive(false); _upgEngBasePointsText.gameObject.SetActive(false); } else { _upgEngPriceText.gameObject.SetActive(true); _upgEngBasePointsText.gameObject.SetActive(true); } }
void _SetEngineLvlPriceAndBaseText(DroneUpgrades __droneUpgrades) { _engineLvlText.text = "Lvl: " + (__droneUpgrades._GetBasicStats()._engineLevel + 1).ToString(); _upgEngPriceText.text = "Price:\n" + (__droneUpgrades._GetBasicStats()._engineBaseCost *(__droneUpgrades._GetBasicStats()._engineLevel + 1)).ToString(); _upgEngBasePointsText.text = "+" + __droneUpgrades._GetBasicStats()._pointsPerEngineLvl + " Points"; }
void _SetDecreaseTimeAmountPriceAndBase(DroneUpgrades __droneUpgrades) { _decreasingTimeAmountText.text = "-" + (__droneUpgrades._GetBasicStats()._baseShorteningTime *__droneUpgrades._GetBasicStats()._shorteningCoolingDownTimeLevel).ToString() + "s"; _decreaseTimePriceText.text = "Price:\n" + (__droneUpgrades._GetBasicStats()._shorteningTimeBaseCost *(__droneUpgrades._GetBasicStats()._shorteningCoolingDownTimeLevel + 1)).ToString(); _decreaseTimeBaseText.text = "-" + __droneUpgrades._GetBasicStats()._baseShorteningTime.ToString() + "s"; }
void _UpdateMoneyAndPoints(DroneUpgrades __droneUpgrades) { _moneyText.text = "Money: " + _money; _pointsText.text = "Points: " + __droneUpgrades._GetBasicStats()._availablePoints; }