Esempio n. 1
0
    public void UpgradeKitchen()
    {
        KitchenRoom kitchen = PlayerRooms.GetKitchenRoom();

        if (kitchen.CanBeUpgraded())
        {
            int currentTier = PlayerRooms.GetKitchenRoomTier();

            if (kitchen.GetDevResourceQuantityAtTier(currentTier + 1).HasInInventory())
            {
                PlayerRooms.SetKitchenRoomTier(currentTier + 1);
                kitchen.GetDevResourceQuantityAtTier(currentTier + 1).SubtractFromInventory();
                ShopCanvas.TriggerRoomsInfoUpdate();
            }
            else
            {
                Debug.Log("Insufficient Resources:" + kitchen.GetDevResourceQuantityAtTier(currentTier + 1));
            }
        }
        else
        {
            Debug.Log("Max Tier Reached: KITCHEN ");
        }
    }
Esempio n. 2
0
 public static void SetKitchenRoom(KitchenRoom room)
 {
     kitchenRoom = room;
 }