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

17 lines
371 B
C#

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);
}
}