Merge branch 'master' of git@83.89.6.135:Let-Him-Cook.git
This commit is contained in:
@@ -12,24 +12,21 @@ 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> ();
|
||||
@@ -41,4 +38,11 @@ public class Cooking : MonoBehaviour
|
||||
currentCollisions.Remove (other.gameObject);
|
||||
}
|
||||
|
||||
|
||||
void Update()
|
||||
{
|
||||
GetIngredients();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user