Merge branch 'master' of git@83.89.6.135:Let-Him-Cook.git

This commit is contained in:
2024-03-06 09:31:57 +01:00

View File

@@ -12,25 +12,22 @@ public class Cooking : MonoBehaviour
List <GameObject> GetIngredients()
{
// foreach (GameObject ingredient in currentCollisions) {
// Debug.Log(ingredient.name);
// }
return currentCollisions;
}
void CheckDishes()
{
if (System.Array.IndexOf(ingrediens, "Egg")!=-1){
print("Egg");
}
foreach (GameObject ingredient in currentCollisions) {
Debug.Log(ingredient.name);
}
void Update()
{
GetIngredients();
}
// Keep track of ingredients going on and off the cooker.
List <GameObject> currentCollisions = new List <GameObject> ();
private void OnTriggerEnter2D(Collider2D other) {
@@ -41,4 +38,11 @@ public class Cooking : MonoBehaviour
currentCollisions.Remove (other.gameObject);
}
void Update()
{
GetIngredients();
}
}