/// <summary> /// Upgrades this area, improving the worker's attributes /// </summary> public void UpgradeArea() { foreach (AreaAttribute <decimal> item in AreaAttributes) { item.Value += item.GetUpgradeAmount(); } int newWorkers = Workers.GetUpgradeAmount(); CurrentUpgradeCost += UpgradeCostMethod(); AddWorkers(newWorkers); AreaLevel++; upgradeButton.SetText(AreaLevel.ToString()); }