When the menu loads, the player's progression for each level is loaded from PlayerPrefs. Each level's key in PlayerPrefs is hardcoded.
For each level that has not been completed already, the appropriate levels will be made unavailable in the menu by changing the text to "LOCKED" and the color to grey.
For each level that a player has completed, a value will need to be saved in PlayerPrefs with the title form eg. progression_1_1 for level 1-1 (Movement-Easy), progression_2_3 for level 2-3 (Health-Hard) etc.
When the menu loads, the player's progression for each level is loaded from PlayerPrefs. Each level's key in PlayerPrefs is hardcoded.
For each level that has not been completed already, the appropriate levels will be made unavailable in the menu by changing the text to "LOCKED" and the color to grey.
For each level that a player has completed, a value will need to be saved in PlayerPrefs with the title form eg.
progression_1_1
for level 1-1 (Movement-Easy),progression_2_3
for level 2-3 (Health-Hard) etc.