17 lines
383 B
C#
17 lines
383 B
C#
|
|
using UnityEngine;
|
|
|
|
public class ColaFreezer : BaseInteractableObject
|
|
{
|
|
[SerializeField]
|
|
private FoodObjectSO _foodObjectSO;
|
|
|
|
public override void Interact(Player player)
|
|
{
|
|
var transform = Instantiate(_foodObjectSO.prefab, _playerArrivePoint);
|
|
var foodObject = transform.GetComponent<FoodObject>();
|
|
player.SetFoodObject(foodObject);
|
|
}
|
|
|
|
}
|