Made ingredients part of dishes
This commit is contained in:
@@ -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
21
Assets/Scripts/Dish.cs
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Dish.cs.meta
Normal file
11
Assets/Scripts/Dish.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: af04675200abb744bb6ce073aae8899d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user