- Home /
PlayerPrefs question
Hello(I hope this question make sense).
In my game, the player first selects from several options (mode, difficulty, character, etc.) using toolbars (one toolbar for each option). Depending on the options different scripts are loaded in the next scene (but its always the same scene). After the game is over, the player goes to the "Over" scene (again, its always the same), which displays their score (just calling the static variable "Score") and a leaderboard of their previous scores (which I dont have implemented yet).
I want each combination of options to have its own score leaderboard, how would I do that? Is there a way to reference the combination of variables from the options menu script in the playerprefs script thats on the main menu (so that each time there is a new combination, playerprefs just sets a new integer and if that combination has been used before it loads the existing scores)?
Thanks
I responded to your forum thread. (Also, please see my comment in your 'BP$$anonymous$$' thread regarding cross-linking.)
@Jesse great. $$anonymous$$ind linking us so we can know if we double post the same answer?
Here is is: http://forum.unity3d.com/threads/70945-PlayerPrefs-question. (Sorry, didn't have the link handy when I posted the above comment.)
Your answer
Follow this Question
Related Questions
PlayerPrefs do not work on other machines, unless I recompile. 3 Answers
Setting which scene to load based on if you've played before? 1 Answer
Clicking on a Cube. Then -1 a varible 1 Answer
Multiple Save (Saving & Loading System) With PlayerPrefs 2 Answers
Passing a variable through the main menu 2 Answers