Hello Guys,

Since I had a nightmare trying to understand what happened, I am sharing this. There are 2 code attachments, one is the DeleteAll() in PlayerPrefsManager & the other is GameManager that have the changes I made. Please look at the GameManager and there are 2 Debug.Log lines and 2nd one should return False but for me, they both returned True. The reason was, I may have accidentally called LevelUnlock on the 2nd one and may not have noted the output which would have been False but once it’s Unlocked, since Playerprefs are permanent, it becomes True forever unless you delete all PlayerPrefs, for which, I added DeleteAll() in PlayerPrefsManager. Hope this is useful but please comment if you like what I did or you don’t like it :slight_smile:

Thanks & Regards,



Privacy & Terms