Hello Everyone!
I’m working about a month on a project, wich i started out from the Roll a Ball Tutorial, here from unity! ![]()
but now i’m facing a problem…
i want the player to need different Scores on every level, for example…
Level 1 = 10 Points to Pass.
Level 2 = 20 Points to Pass.
and so on…
but i can only define the Value as a fixed number… for example, if i put “100” the player will need 100 points even in Stage 1.
if someone can help, please do ! ![]()
here is the code, almost all provided from the Roll a Ball video Tutorial.
void SetCountText ()
{
countText.text = "Count: " + count.ToString ();
if (count >= 100)
{
int i = Application.loadedLevel;
Application.LoadLevel(i + 1);
winText.text = "You Win!";
}
}