public void UpgradeSelectedRoom() { if (SelectedRoom != null && moneyScript.money >= SelectedRoom.upgradeCost) { moneyScript.money -= SelectedRoom.upgradeCost; SelectedRoom.Upgrade(); } }