I have a game where all levels are unlocked, I need to let the user know that they have completed a level, they click on a button to switch to a level
my game has 15 levels so I have this script
The for loop is to check all the levels to see which levels have not been completed, if the level is not completed then the color is going to equal the color of a hidden button which is red
The thing is…the system I created works like a regular unlock and lock system
(play level 1 to unlock 2, play level 2 to unlock 3 etc.)
so let’s say I play level 7 (remember all levels are unlocked)
it will leave the buttons after 7 (8 - 15) the level not played color which is red, which I want it to do, but the buttons before 7 (1 - 6) will be there normal color, indicating that the player has played levels 1 through 6
but they haven’t.
I need a fool proof way of informing a user that they have completed a level, even if they go to level 7 with out playing levels 1 - 6 it will only show hat they have played level 6 and not the levels before 6 as well.
P.S. the PlayerPrefs.DeleteKey("LevelIsNotCompleted");
is so before I export my APK I delete any saved data I might have stored during the development process in the unity editor.
@UnityCoach
@AnyoneElseThatCanHelp