if (playerScript.score >= 20) {
level++;
playerScript1.death = true;
GUI.DrawTexture(new Rect(Screen.width / 2 - 250, Screen.height / 2 - 211, 500, 422), info);
GUI.Label(new Rect(Screen.width / 2 - 180, Screen.height / 2 - 75, 100, 100), "Congratz, \nlets go to the next level!\nYour score: " + finalscore.ToString("0.0") + "\nYour time: " + time.ToString("0.0") + "\n\n Press anything to continue.", guiStyle1);
if (waitfor <= 0)
{
if (Input.anyKey)
{
UnityEngine.SceneManagement.SceneManager.LoadScene("Space");
}
}
}