Posted April 26, 2022 by greenKac
#devlog #technical #save #system #upgrade
{TECHNICAL PART}
Before i was using unity's default save system (Playerprefs)
that leaves non-crypted files (so easily editable) in: HKEY_CURRENT_USER\SOFTWARE\Unity\UnityEditor\CompanyName\ProjectName
Now, i have made my own using Binary Formatters (to encode and write/read the files) and have made my own data structures: ex: i have to save the bestTime value of each map, so to do that i have created a data structure script: BestTimeData and a global save system script: SaveSystem, in BestTimeData i get the bestTime value from the script that calculate it and the SaveSystem script will get that and write/read it when the Save or the Load function is called.
The path of the save files is: C:/Users/userName/AppData/LocalLow/DefaultCompany/Black Hover/saveFileName