2
\$\begingroup\$

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?

\$\endgroup\$
2
\$\begingroup\$

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

\$\endgroup\$
  • 1
    \$\begingroup\$ Just a quick word of caution: PlayerPrefs saves values into the Registry on Windows. \$\endgroup\$ – XNargaHuntress Sep 30 '14 at 11:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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