Some scriptable objects for sharing data between game elements and a system for saving the runtime values of those shared variables. Based on this tutorial: architect with scriptable objects and now updated to use generics based on this: saving scriptable object variables
- Create a new SaveObject (under the assset create menu)
- Create Variables you want to have saved (Asssets->Create->Variables)
- Put Variables in folder with the same name as the SaveObject
- Add Variables to SaveObject's Data list. (click search for variables to find all variables under /[SaveObjectName]/ folder.)
- Write classes use Variables to store and share data.