//Setting all scores to default values public static void InitScore() { score = 0; gameGameTime = 0; highestScore = DataSaver.GetHighScore(); startHighestScore = highestScore; }
private void OnEnable() { InitText(_scoreText, DataSaver.GetScore().ToString()); InitText(_highScoreText, DataSaver.GetHighScore().ToString()); InitText(_asteroidsText, DataSaver.GetAsteroids().ToString()); InitText(_timeText, DataSaver.GetTime().ToString()); SetHighScoreMessage(); }