Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Count()
- {
- if(time == 0)
- {
- scoreList.Add(score, name);
- // PlayerPrefs.SetString(score.ToString(), "saveScore");
- //PlayerPrefs.SetString(name, "saveName");
- gameOver.text = "GAME OVER! Press 'a' to go back to main menu";
- movementSpeed = 0;
- jumpForce = 0;
- mGameOver = true;
- CancelInvoke("Count");
- }
- else
- {
- time--;
- }
- }
- void PrintScoreList()
- {
- string tmpString = "";
- Console.WriteLine(tmpString);
- scoreList.Sort();
- foreach (Tuple<int, string> tuple in scoreList)
- {
- tmpString = tmpString + "\n" + string.Format("{0}:{1}", tuple.Item1, tuple.Item2);
- }
- scoreText.text = tmpString;
- Console.WriteLine(tmpString);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement