player interact with cola freezer, improvement in movements
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user