Save System Doubt
Posted: Fri Nov 05, 2021 12:25 pm
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 ! )
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 ! )