Files
let-him-cook/Assets/Scripts/CookButton.cs
2024-03-12 16:02:45 +01:00

15 lines
298 B
C#

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<Cooking>().CreateDish();
}
}