youvsvirus / youvsvirus-unity

Unity version of the you vs virus game.
GNU General Public License v3.0
1 stars 1 forks source link

Inventory system #86

Closed holke closed 4 years ago

holke commented 4 years ago

For levels 2 and 3 we need an inventory system for things the player can collect.

I Think this can be done quite easily by storing a list of integers in the player class, one for each type of item corresponding to the number of items the player has. Then a add item and remove item function and we should be done.

holke commented 4 years ago

After thinking about this and how I would implement a collection system for face masks, I don’t think we need a complicated inventory system. Since we are only going to have a handful of different items, we can just add one counter variable per item to the player class and a set and get function per item.

So I think this issue will close itself after level 2 and 3.