Wednesday, September 17, 2014

Persistent Storage

PlayerPrefs
  • Set Value:
            PlayerPrefs.SetInt("HighScore", score);
  • Get Value:
            PlayerPrefs.GetInt("HighScore");
  • Clear Data:
            PlayerPrefs.DeleteKey("HighScore");
            
            PlayerPrefs.DeleteAll();

For details:

No comments:

Post a Comment