public void UpgradeOffice() { OfficeRoom office = PlayerRooms.GetOfficeRoom(); if (office.CanBeUpgraded()) { int currentTier = PlayerRooms.GetOfficeRoomTier(); if (office.GetDevResourceQuantityAtTier(currentTier + 1).HasInInventory()) { PlayerRooms.SetOfficeRoomTier(currentTier + 1); office.GetDevResourceQuantityAtTier(currentTier + 1).SubtractFromInventory(); ShopCanvas.TriggerRoomsInfoUpdate(); } else { Debug.Log("Insufficient Resources:" + office.GetDevResourceQuantityAtTier(currentTier + 1)); } } else { Debug.Log("Max Tier Reached: OFFICE "); } }
public static DevResourceQuantity GetNextOfficeUpgradeCosts() { return(officeRoom.GetDevResourceQuantityAtTier(GetOfficeRoomTier() + 1)); }