Hi every one. we are trying to create some scripts that allow us to have some unlockable contents. So far we created a game and what we want to have in it is an option that leads to a punch of other skin selections.
Basically, we want player to get to a certain scores and they can unlock skins for their character. When they unlock new skins. They can go to the menu then the selection option. They can choose new skins from there and go back to play with a new skin applied.
This is more a game design question but. Well, when the player finishes a round of your game you check the high score against the minimum score for each new skin. If the player has enough points you need to set some data to say he can use that skin. Then the menu screen will need to check to see if the skin is usable by looking at the data.
So in game: game finished → check score → save new allowed skins, in player prefs or xml or whatever.
Game menu: player enters menu → load allowed skins → foreach allowed skin, create a option to use it.
You basically need one script that runs after your game has finished checking the score and editing a data file to allow new skins. Then you will need a script in the menu scene which loads this data file and enable skin options based on the data.