Global inventory

Hello! I have renewed my inventory system and it works better. But the thing is I want to use the item counts on another scene for a physics game I’m working on. Ex; if the player collected 3 apples and 2 grapes those will appear on the screen in another scene. Can it work with this system? Any suggestions would help greatly. I’m trying something but not sure how it will work.

It appears that you have inventoryCounts structure as a global variable, so that will transfer between scenes. If you wanted to use this info in another scene, you could, at the start of the new scene, go through your inventorycounts objects and store them in the local inventoryslots… Unless I misunderstood your question.