Re: Localization revert to default fails
Posted: Wed Oct 09, 2019 10:13 am
Hello Tony,
I think we found the issue.
When we start a new game, we delete the PlayerPrefs for deleting the save game and I think this deletes the language preferences.
Currently this works for us:
Is this sufficient or do we have to take care that we might have to restore something else by deleting the PlayerPrefs that the Dialogue Manager needs?
All the best,
Evelyn
I think we found the issue.
When we start a new game, we delete the PlayerPrefs for deleting the save game and I think this deletes the language preferences.
Currently this works for us:
Code: Select all
if (newGame) {
string currentLanguage = Localization.Language;
PlayerPrefs.DeleteAll();
DialogueManager.SetLanguage(currentLanguage);
SetInitialRandomValues();
}
Is this sufficient or do we have to take care that we might have to restore something else by deleting the PlayerPrefs that the Dialogue Manager needs?
All the best,
Evelyn