- Home /
Locking Levels on a Level Map.
I have a map scene and I'm wondering on how to set up a level locking thing so that if the player beats a level it will unlock the next level on the map.
I know you would do something like a bool but how would you pass the bool to the next script? (And display the locked icon)
Basically: how would I pass a bool type thing from scene to scene?
Answer by Heratitan · Aug 02, 2010 at 10:05 PM
The way I did it was using PlayerPrefsX and having one master script that held all of my level buttons for me and then after I beat a level I would just set the PlayerPrefsX Bool to be set to true.
Here is a link to my question: http://answers.unity3d.com/questions/16591/playerprefs-problem-crashing-with-setbool
Hope that helps.
Your answer
Follow this Question
Related Questions
Locking levels on a level map? 1 Answer
Level Segmenting and Loading 1 Answer
How to manage large 2D worlds? 0 Answers
Making a new level 1 Answer