player can work now

This commit is contained in:
2023-04-10 18:01:16 +03:00
parent f2753a363b
commit 2f69a2b046
19 changed files with 267 additions and 64 deletions
+2 -3
View File
@@ -9,13 +9,12 @@ public class Fridge : BaseInteractableObject
private ContainerSO _containerSO;
[SerializeField]
//private ItemActionsUI _actionsMenu;
private Player _player;
private List<FoodItemSO> _foodObjects = new List<FoodItemSO>();
public override void Interact(Player player)
{
_player = player;
base.Interact(player);
if (player.IsHoldContainerItem())
{
var playerContainer = player.GetContainerItem();