Hi to all.
Can any one tell me how to save the player’s score in the game . and retrieve the score of the player after the player has opened the game again.
If you have any sample code or any tutorials links. please send it to me.
Thank you in advance
Raja
Use player prefs:
If your variable is myscore, the following saves the score:
PlayerPrefs.SetInt("Player Score", myscore);
You could read it at the beginning of the game by doing this:
myscore = PlayerPrefs.GetInt("Player Score");