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 "); } }
public static void SetKitchenRoom(KitchenRoom room) { kitchenRoom = room; }