public void Upgrade() { if (active.building != null && player.Money >= active.upgradeCosts()) { active.upgrade(); player.Money -= active.upgradeCosts(); } Cancel(); }