Welcome to this tutorial covering how to make a robust inventory system. In any game which uses items, you'll usually need some way for the player to view and u...
we know that CategoryName is an instance variable of the array(inventory) but where did ArrayName come from?
edit:o, i just now know it, we can add a thing called parameter in the function.