Esempio n. 1
0
 private void CheckVictory()
 {
     if (dotCount >= (map.smallDots.Count + map.bigDots.Count))
     {
         scoreData.currentScore = (int)points;
         SerializeSystem.SaveGame(scoreData);
         SceneManager.LoadScene(SceneManager.GetActiveScene().name);
     }
 }
Esempio n. 2
0
 private void UpdateHighscoreDisplay()
 {
     highScoreDisplayText.text = "Current highscore " + scoreData.highScore.ToString("00000") + " \nPress 'X' to reset them";
     SerializeSystem.SaveGame(scoreData);
 }
Esempio n. 3
0
 public void BackToMainMenu()
 {
     scoreData.currentScore = 0;
     SerializeSystem.SaveGame(scoreData);
     SceneManager.LoadScene(mainMenuSceneName);
 }