Made ingredients part of dishes

This commit is contained in:
2024-03-06 09:31:48 +01:00
parent 1ab8cea2f5
commit 90781ef559
5 changed files with 208 additions and 9 deletions

View File

@@ -9,14 +9,14 @@ public class Cooking : MonoBehaviour
void GetIngredients()
List <GameObject> GetIngredients()
{
// foreach (GameObject ingredient in currentCollisions) {
// Debug.Log(ingredient.name);
// }
return currentCollisions
return currentCollisions;
}
void CheckDishes()

21
Assets/Scripts/Dish.cs Normal file
View File

@@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Dish : MonoBehaviour
{
public List <GameObject> RequiredIngredients;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: af04675200abb744bb6ce073aae8899d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -7,7 +7,8 @@ public class Ingredient : MonoBehaviour
// Start is called before the first frame update
// L
Vector3 mousePosition;
public Transform transform;
new public Transform transform;
public List <GameObject> IngredientIn;
bool isMoving = false;
//public GameObject table;
void Start()