Hey guys I created some booleans, if theyre setted to true the will unlock the other levels.
The problem is that when I change the scene and come back the are setted to false again.
Any ideas on how to keep them in true once I complete the level?
Attach the script to an empty gameObject and add DontDestroyOnLoad would do the trick.
Edit for further explanation:
Your script already 'remembers' values you feed to it, it's just that the script gets destroyed when you load a new scene. I take it you already have the script attached to something in your scene, now when you add DontDestroyOnLoad to this script it will 'survive' scenechanges.