To make it work with more prefabs you'll have to add an ObjectSerializer to it. This will save basic info about GO. Also, these prefabs need to be referenced in the Resources/Prefabs file, otherwise the serializer won't be able to recreate serialized objects.
GlobalSerializationManage or something like that is an example of implementation of the serializer. Create an empty game object on the menu scene and assign the script to it. I tried to make it in a similar vein as your other global managers. It directly references the serialization class.
GameDataSerializer is the main serialization class which does all the magic. You can access its methods in your own serialization manager. It's at the top of the classes hierarchy, so use it for storing and reading game data.
The function to check how many in-game time has passed since last sesison is also available from the main serialization class. Use it to move the planets every time the player starts game or something. You can also adjust the time rate by changing the variable in the method declaration.
Good luck with your project! I'll send you payment information on reddit in a sec.
I'm done. Everything is working fine.
To make it work with more prefabs you'll have to add an
ObjectSerializer
to it. This will save basic info about GO. Also, these prefabs need to be referenced in theResources/Prefabs
file, otherwise the serializer won't be able to recreate serialized objects.GlobalSerializationManage
or something like that is an example of implementation of the serializer. Create an empty game object on the menu scene and assign the script to it. I tried to make it in a similar vein as your other global managers. It directly references the serialization class.GameDataSerializer
is the main serialization class which does all the magic. You can access its methods in your own serialization manager. It's at the top of the classes hierarchy, so use it for storing and reading game data.The function to check how many in-game time has passed since last sesison is also available from the main serialization class. Use it to move the planets every time the player starts game or something. You can also adjust the time rate by changing the variable in the method declaration.
Good luck with your project! I'll send you payment information on reddit in a sec.