void SetLanguagePreference(string language)
{
PlayerPrefs.SetString(“language”, language);
}
void SetDifficultyPreference(string difficulty)
{
PlayerPrefs.SetString(“difficulty”, difficulty);
}
/* Your logic here for using GetString() to retrieve the values you need! */
Last active
July 4, 2017 15:09
-
-
Save zcaceres/a0cb26c0525000e1ec3f65c1b15d02c1 to your computer and use it in GitHub Desktop.
Snippet for PlayerPrefs blog post
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment