Thanks Wisdoms But there is a small issue:
When I completed my level 1 with one star, it says Stars collected 1. If I play again the same level and complete with 3 stars it should not add that into the 1 already collected. It should just say 3 stars collected. (Forgot about the no of stars shown over the button, Just one total around the corner).
About the second questions.
Here the stars are gained when we click it, but in my test game which I am trying, Player gain stars if my player uses less arrows to complete the level.
Even if you want to change the whole array system, doesn't matter. I focusing to use level unlock and star counts calculated.