I’m having trouble understanding how the ItemDropper script knows when an item has been picked up. I can see that the Pickup script destroys the gameobject, but how does that make the item in ItemDropper’s pickup List null? Is ItemDropper scanning the Hierarchy when RemoveDestroyedDrops() is called?
It doesn’t appear to do so. It seems to be searching through the droppedItems List, but if droppedItems is only updated when an item is dropped, how could a part of it be null?