Ejemplo n.º 1
0
 private void btnbuy_Click(object sender, EventArgs e)
 {
     if (_currentUpgrade != null)
     {
         if (_currentUpgrade.CanBuy(CurrentSystem))
         {
             CurrentSystem.Buy(_currentUpgrade);
             ResetUpgrades();
             UpdateUpgradeInfo();
         }
     }
 }