Hi!
I'm having some issues when I want to erase the game data.
In my game, when I press the "New Game" button, it erase the game data with PlayerPrefs.DeleteAll ();
However, when you start the game, all the variables and quests are still loaded from the previous game data.
Something curious is that when closing the game and opening it again, everything is finally erased.
I don't know if it's an error of mine with my code or if it may have something to do with the dialog system.
Should I delete the game data using something other than PlayerPrefs.DeleteAll ()?
My DialogueSystem contains:
Maybe I need to call the button "Clear Saved Games" from PlayerPrefs "Saved Game Data Storer" ?
( I'm sorry to ask here because maybe it's due to my ineptitude and not to anything related to the dialogue system, but I can't find the fault ! )
Save System Doubt
Re: Save System Doubt
Hi,
To erase the game data in memory, call PixelCrushers.SaveSystem.ResetGameGame(), or SaveSystem.RestartGame("scene") to reset the game data and load the first gameplay scene.
To delete the saved game (files/PlayerPrefs), use SaveSystem.storer.DeleteSavedGameData(slotNumber).
To erase the game data in memory, call PixelCrushers.SaveSystem.ResetGameGame(), or SaveSystem.RestartGame("scene") to reset the game data and load the first gameplay scene.
To delete the saved game (files/PlayerPrefs), use SaveSystem.storer.DeleteSavedGameData(slotNumber).
Re: Save System Doubt
Solved! Thanks again, you are my hero!Tony Li wrote: ↑Fri Nov 05, 2021 1:31 pm Hi,
To erase the game data in memory, call PixelCrushers.SaveSystem.ResetGameGame(), or SaveSystem.RestartGame("scene") to reset the game data and load the first gameplay scene.
To delete the saved game (files/PlayerPrefs), use SaveSystem.storer.DeleteSavedGameData(slotNumber).