Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     Debug.Log("HighScoreTester: Current Highscore = " + HighScoreSystem.LoadHighScore());
     Debug.Log("HighScoreTester: Current Score = " + currentScore);
     if (HighScoreSystem.SaveHighScore(currentScore))
     {
         Debug.Log("HighScoreTester: New Highscore");
     }
     Debug.Log("HighScoreTester: Current Highscore = " + HighScoreSystem.LoadHighScore());
 }
Beispiel #2
0
    private void OnTimeOut()
    {
        foreach (GameObject gameObject in resultOverlay)
        {
            gameObject.SetActive(true);
        }

        foreach (GameObject gameObject in gameOverlay)
        {
            gameObject.SetActive(false);
        }

        resultScoreText.text     = GameTracker.GetCurrentScore().ToString();
        resultHighscoreText.text = HighScoreSystem.LoadHighScore().ToString();
    }