Star system.

Hi, i’m trying to do a star based ranking system… and I’m trying to figure out how to do this, since I can’t find any tutorials or anything :frowning:

I want to make something like this:
1592691--95660--$zq6nd.png

I’ve already made the level buttons, and the lock/unlock system, BUT I need to show how many stars I collect inside each level… I also need to know how to do this.

Should I use PlayerPrefs for this? What would they look like? how would you set up the GUI? how would you set it up in the inspector?

Now I have my player collecting stars and saving them in public int starsCollected;

You need to store the values, stars achieved for x level. To do that, use PlayerPrefs.SaveInt().

Then you need to have each btn in your menu call its level specific value.

So, for level x…

starsAchieved = PlayerPrefs.GetInt("starsAchievedForLevelX");