Skip to content

Instantly share code, notes, and snippets.

@zcaceres
Last active July 4, 2017 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zcaceres/a0cb26c0525000e1ec3f65c1b15d02c1 to your computer and use it in GitHub Desktop.
Save zcaceres/a0cb26c0525000e1ec3f65c1b15d02c1 to your computer and use it in GitHub Desktop.
Snippet for PlayerPrefs blog post
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! */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment