Problem about Lock/ Unlock level

I use some boolean variables to make a Lock/ Unlock level system. But if I unlock all level and quit game, then play again, all levels are locked like before. How can I fix it ?

Thanks, I’m not a native English.

As mentioned by other users here, you can either use PlayerPrefs or you can go for Serialization.
Check out the article from TheGameContriver on this topic

Unity Lock Unlock System - TGC

you just need to save the game. I saw brackeys made a video on binary save. I hope this helps.