Files
let-him-cook/Assets/Scripts/CookButton.cs
2024-04-03 17:40:54 +02:00

14 lines
274 B
C#

using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
public class CookButton : MonoBehaviour
{
public GameObject Button;
void OnMouseUp() {
Button.GetComponentInParent<Cooking>().CreateDish();
}
}