Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I made a game and i want to save the high score and load it back. I need to save 3 variables and load them when the game starts. How do i do it?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Look at PlayerPrefs class. It's a key/value system that allows you to save, or read, a value.

share|improve this answer
1  
Just a quick word of caution: PlayerPrefs saves values into the Registry on Windows. –  XGundam05 Sep 30 '14 at 11:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.