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?

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.

thanks a lot!