bad code fix
This commit is contained in:
@@ -8,16 +8,6 @@ using UnityEngine.UI;
|
|||||||
|
|
||||||
public class Cooking : MonoBehaviour
|
public class Cooking : MonoBehaviour
|
||||||
{
|
{
|
||||||
// void CheckDishes()
|
|
||||||
// {
|
|
||||||
// foreach (GameObject ingredient in currentCollisions) {
|
|
||||||
|
|
||||||
// Debug.Log(ingredient.name);
|
|
||||||
// Debug.Log(ingredient.GetComponent<Ingredient>().NutritionalValue);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// }
|
|
||||||
public Vector3 FinishedDishPosition;
|
|
||||||
public GameObject AllIngredients;
|
public GameObject AllIngredients;
|
||||||
public GameObject LevelManager;
|
public GameObject LevelManager;
|
||||||
private List<GameObject> DishesCooked = new List<GameObject>(); // stop user from cooking same dish twice.
|
private List<GameObject> DishesCooked = new List<GameObject>(); // stop user from cooking same dish twice.
|
||||||
|
|||||||
@@ -7,12 +7,11 @@ public class Ingredient : MonoBehaviour
|
|||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
// L
|
// L
|
||||||
Vector3 mousePosition;
|
Vector3 mousePosition;
|
||||||
new public Transform transform;
|
|
||||||
public List <GameObject> IngredientIn;
|
public List <GameObject> IngredientIn;
|
||||||
public int NutritionalValue;
|
public int NutritionalValue;
|
||||||
bool isMoving = false;
|
bool isMoving = false;
|
||||||
//public GameObject table;
|
//public GameObject table;
|
||||||
private Vector3 DefaultPosition;
|
Vector3 DefaultPosition;
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
DefaultPosition = transform.position;
|
DefaultPosition = transform.position;
|
||||||
|
|||||||
Reference in New Issue
Block a user