public virtual void SaveIntroScene() { SerializedIntro serializedIntro = new SerializedIntro(); FillSerializedIntroScene(serializedIntro); MMSaveLoadManager.Save(serializedIntro, _saveFileNameCurrency + _saveFileExtensionCurrency, _saveFolderName); }
private void ExtractSerializedIntroScene(SerializedIntro serializedIntro) { if (serializedIntro == null) { Debug.Log("IsNull"); return; } Debug.Log(serializedIntro.hasBeenToIntro); hasBeenToIntro = serializedIntro.hasBeenToIntro; }
private void FillSerializedIntroScene(SerializedIntro serializedIntro) { serializedIntro.hasBeenToIntro = hasBeenToIntro; Debug.Log(hasBeenToIntro); }
/// <summary> /// Tries to load the currency if a file is present /// </summary> public virtual void LoadSavedIntroScene() { SerializedIntro serializedIntro = (SerializedIntro)MMSaveLoadManager.Load(typeof(SerializedIntro), _saveFileNameCurrency + _saveFileExtensionCurrency, _saveFolderName); ExtractSerializedIntroScene(serializedIntro); }