bad code fix

This commit is contained in:
2024-04-26 15:58:16 +02:00
parent 6dd6223a13
commit efdc5818e3
2 changed files with 1 additions and 12 deletions

View File

@@ -8,16 +8,6 @@ using UnityEngine.UI;
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 LevelManager;
private List<GameObject> DishesCooked = new List<GameObject>(); // stop user from cooking same dish twice.

View File

@@ -7,12 +7,11 @@ public class Ingredient : MonoBehaviour
// Start is called before the first frame update
// L
Vector3 mousePosition;
new public Transform transform;
public List <GameObject> IngredientIn;
public int NutritionalValue;
bool isMoving = false;
//public GameObject table;
private Vector3 DefaultPosition;
Vector3 DefaultPosition;
void Start()
{
DefaultPosition = transform.position;