- Home /
Question by
TSR_Rajput · Jul 20, 2019 at 02:35 PM ·
save dataloading filesave game
How to save some integers and bools when a scene is switched.
I want to know both things saving and loading integers and bools. Also what to do so that it saves when scene is switched. I want the solution as simple as you can provide. I had tried many plugins from asset store, Playerprefs, and checked many youtube videos. Those were too complex, I need a simple solution, a very simple one. An example will help me to understand easily. If there is something that can save my whole script, and I can load it, then that might do my work. The following code is storing the data during runtime. I want to save and load coinCollected and scoreHighest only.
coding.png
(28.6 kB)
Comment