示例#1
0
	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;
	}
示例#2
0
    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;
    }