I’m trying to find the best way to implement a general script that will temporarily store variables from the player, inventory, level specific scripts (possibly), etc. Currently, I have a script that stores all the information of my player (and is connected to my player’s prefab) as well as the contents of the inventory.
I haven’t thought of a way to program/collect information from each level (mainly because each level will have there own set of variables.
I created a graph of the logic that I intend to use, everything with an asterisk I’m not entirely sure how I should implement it.
So, is this a good implementation? Should I have a “Game State” class? And any specific way I can do a “Temp Save” Container?
I would also like to “prepare” this information when I need to save.
Any advice would be appreciated.