I’m working on a game which has a saving system. Every time the player exits the game, the system saves and this is suppose to work every time.
However while this works, it’s inconsistent at least in the Unity Editor so far (Have not checked how it is on exe files). Whenever I stop playing, my save function would sometimes fails to overwrite the json I have, which is currently stored in my resources folder.
I don’t get any errors related to quitting the application, except for the occasional object not found from the Save Data. Any advice?
Here is my code.