Trying to work on an inventory system where a player triggers an OnMouseDown event on an object which calls an inventory.AddItem method to add said object to a players inventory (attached to the gameobject that initiated the OnMouseDown call).
Is there any way to refer to that initator? As it stands I have no way of telling the item which players inventory it belongs in.
Thanks in advance!