its your game, your inventory component is where ever you put it ha, just don’t forget where it is
if its single player it doesnt really matter where you put but this is where encapsulation is useful, once you’ve decided where it is, create a function library to get it and use that everywhere, that way if you ever move/change it you only have to change one function