Ejemplo n.º 1
0
 void CompletePurchase(Upgrade upgrade)
 {
     upgradeSystem.UpdatePartsCount(-currentUpgrade.cost);
     upgradeSystem.UpdateHP(currentUpgrade.HPModifier);
     upgradeSystem.UpdatePower(currentUpgrade.powerModifier);
     upgradeSystem.UpdateSpeed(currentUpgrade.speedModifier);
 }