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