sllewely / capitalismgame

1 stars 0 forks source link

remove inventoryItem on stock #27

Closed ALW93 closed 10 months ago

ALW93 commented 10 months ago

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