Cooking?
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user