void Start () { scoreEntry = new ScoringSystem.ScoreEntry (); scoring = gameObject.GetComponent<ScoringSystem>(); scoreEntry.name = PlayerPrefs.GetString("Name"); scoreEntry.score = PlayerPrefs.GetFloat ("ScoreFloat"); scoring.AddScoreIntoHighScore (scoreEntry); //on gameover screen //fix for time still being slowed after a gameover Time.timeScale = 1.0F; }
void Start() { scoreEntry = new ScoringSystem.ScoreEntry(); scoring = gameObject.GetComponent <ScoringSystem>(); scoreEntry.name = PlayerPrefs.GetString("Name"); scoreEntry.score = PlayerPrefs.GetFloat("ScoreFloat"); scoring.AddScoreIntoHighScore(scoreEntry); //on gameover screen //fix for time still being slowed after a gameover Time.timeScale = 1.0F; }