diff --git a/Assets/Scripts/Cooking.cs b/Assets/Scripts/Cooking.cs index 4eda451..af77631 100644 --- a/Assets/Scripts/Cooking.cs +++ b/Assets/Scripts/Cooking.cs @@ -91,22 +91,22 @@ public class Cooking : MonoBehaviour DishesCooked.Add(BestDish); - - // Find used ingredients - List IngredientsInDish = BestDish.GetComponent().RequiredIngredients; - List UsedIngredients = new(); - List UnusedIngredients = new(); - - foreach (GameObject Ingredient in Ingredients) { - if (IngredientsInDish.Contains(Ingredient)) { - UsedIngredients.Add(Ingredient); - } - else { - UnusedIngredients.Add(Ingredient); - } - } - // old code + // // Find used ingredients + // List IngredientsInDish = BestDish.GetComponent().RequiredIngredients; + // List UsedIngredients = new(); + // List UnusedIngredients = new(); + + // foreach (GameObject Ingredient in Ingredients) { + // if (IngredientsInDish.Contains(Ingredient)) { + // UsedIngredients.Add(Ingredient); + // } + // else { + // UnusedIngredients.Add(Ingredient); + // } + // } + + //-------------------------------------- // // Remove ingredients and add the dish // foreach (GameObject Ingredient in UsedIngredients) {