simple eating )

This commit is contained in:
2023-02-28 23:41:38 +02:00
parent 75b9665674
commit 811b2efc85
9 changed files with 55 additions and 252 deletions
@@ -10,6 +10,7 @@ public class ColaFreezer : BaseInteractableObject
{
if (!player.HasFoodObject())
{
player.BuyObject(_foodObjectSO);
// Spawn new object and set to player
var transform = Instantiate(_foodObjectSO.prefab, _playerArrivePoint);
var foodObject = transform.GetComponent<FoodObject>();