Example #1
0
 PlayerData HandlePlayerData()
 {
     #if UNITY_EDITOR
     if (isTesting)
     {
         return(playerData);
     }
     else
     {
         return(SaveExtension.Override(saveKey, new PlayerData()));
     }
     #else
     return(SaveExtension.Override(saveKey, new PlayerData()));
     #endif
 }
Example #2
0
 void Save()
 {
     SaveExtension.Save(data, saveKey);
 }
Example #3
0
 PlayerData Load()
 {
     return(SaveExtension.Load(saveKey, new PlayerData()));
 }