public PickupSystem( Player.Inventory inventory, PickupNotification notification) { _inventory = inventory; _notification = notification; }
public void Subscribe(Player.Inventory inventory) { inventory.OnSlotChanged += OnInventoryChanged; }
void Awake() { player = GameObject.FindGameObjectWithTag(Tags.player); playerInventory = player.GetComponent <Player.Inventory>(); } // Awake