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