From 2286d0ba0065df065e763f80c8c4e48ae4850273 Mon Sep 17 00:00:00 2001 From: magn9775 Date: Wed, 6 Mar 2024 09:07:21 +0100 Subject: [PATCH] Cooking? --- Assets/Scripts/Cooking.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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(); } }