Ejemplo n.º 1
0
    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 ");
        }
    }
Ejemplo n.º 2
0
 public static DevResourceQuantity GetNextOfficeUpgradeCosts()
 {
     return(officeRoom.GetDevResourceQuantityAtTier(GetOfficeRoomTier() + 1));
 }