Completes loop of stocking an item into the store by removing an inventory item after it's been chosen -- given the current way we keep track of items in the (standard list with item duplicates) the destroy just queries for the first gameObject it finds matching an item name.
This will need to be updated if we ever change the inventory structure to handle item stacks!
Summary
Completes loop of stocking an item into the store by removing an inventory item after it's been chosen -- given the current way we keep track of items in the (standard list with item duplicates) the destroy just queries for the first gameObject it finds matching an item name.
This will need to be updated if we ever change the inventory structure to handle item stacks!
https://github.com/sllewely/capitalismgame/assets/64264411/36e75d5d-ca30-411c-bc89-38c51684a724