Save System
Last updated
Last updated
To show Save Load Manager Inspector window:
Load Main Menu Scene -> Select Save Load Manager Gameobject.
File Name
Input file name saved on device ( Default name is GameData ).
Is Use Encryption
Enable this option to make it harder for players to hack data.
Is Use Save Cloud
Enable this option for save load game data with Playfab.
To save and load new variable, such as gems, first open the GameData script.
Add two lines code like the below picture:
Implement ISaveLoadGame to Class name you want.
Add two functions save and load to the name class implemented ISaveLoadGame interface.
Now you can save and load gems variable in the game.