GameVsJam/3d Prototyp/Assets/Scripts/Interaction/Fridge.cs

17 lines
371 B
C#
Raw Normal View History

2024-04-07 13:18:54 +02:00
using System.Collections;
using System.Collections.Generic;
using Interaction;
using UnityEngine;
public class Fridge : MonoBehaviour
{
[SerializeField]
private PickupInteractible _matePrefab;
public void GetMateFromFridge()
{
PickupInteractible mate = Instantiate(_matePrefab);
GameManager.Instance.Player.PickupItem(mate);
}
}