saves changes after game exit

hi
how can keep changes made in a script after game exit
thanks

PlayerPrefs is one way. You save them upon quitting the game and load them on start up.

thank you

keep in mind that playerprefs stores everything in the registry raw! So if you would do something like storing a lets say ingame money value, the player can easily go into the registry and change that value to 999999. You should either encrypt it or save to an external file. I personally use playerprefs only for easy transfering of variables between scenes, and later deleting them all.

thanks , i know , i made it simple ,i used it jtst set and get some bool variables