using System.Collections; using System.Collections.Generic; using Unity.VisualScripting; using UnityEngine; public class CookButton : MonoBehaviour { public GameObject Button; void OnMouseUp() { Debug.Log("L"); Button.GetComponentInParent().CreateDish(); } }