Kühlschrank und Mate
This commit is contained in:
16
3d Prototyp/Assets/Scripts/Interaction/Fridge.cs
Normal file
16
3d Prototyp/Assets/Scripts/Interaction/Fridge.cs
Normal file
@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user