Use the [PlayerPrefs][1] to save and load values between sessions.
static function SaveProgress () {
PlayerPrefs.SetInt("Player Score", scoreVariable);
}
static function LoadProgress () {
scoreVariable = PlayerPrefs.GetInt("Player Score");
}
For even more functionality you could use [ArrayPrefs2][2] made by Eric5h5.
[1]: http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.html
[2]: http://www.unifycommunity.com/wiki/index.php?title=ArrayPrefs2
Trending Articles
More Pages to Explore .....