A generic saving system for games made in the Unity Engine. I initially wrote this for one of my games but decided to go with a system more specific to my game.
To implement this,
- Paste the files in this repository into the Scripts folder
- Add the interface to each class you have saveable objects in
- Implement the methods in the interface (Visual Studio will warn you)
- You will see 2 methods, Save and Load
- return the serialiazable object you want to save in the Save() method
- Assign the object in the parameter of the Load() method to the serializable object. Be sure to cast it
- Trigger the Save() and Load() methods however you see fit for your game