diff --git a/Assets/Scripts/Cooking.cs b/Assets/Scripts/Cooking.cs index dc84987..8917006 100644 --- a/Assets/Scripts/Cooking.cs +++ b/Assets/Scripts/Cooking.cs @@ -5,14 +5,25 @@ using UnityEngine; public class Cooking : MonoBehaviour { + private string[] ingrediens = {"L","Egg"}; + + + void GetIngredients() { } + void CheckDishes() + { + if (System.Array.IndexOf(ingrediens, "Egg")!=-1){ + print("Egg"); + } + } void Update() { - GetIngredients() + GetIngredients(); + CheckDishes(); } }