Esempio n. 1
0
    public void Reset()
    {
        Time.timeScale = 0;//Pause Game
        //Reset Speed
        index      = 0;
        this.speed = speedArray[index];

        //Save and Get ready for new Score
        leaderBoard.SaveScore(pointsValue);//save score
        UpdateScore(0, true);

        //Reset Timer
        loadCircle.SetLoadingScript(timerFillAmount, speedArray[index]);
        ActivatePauseMenu();

        //Reset Heart Meter
        healthMeter.Reset();
    }