Ejemplo n.º 1
0
    /**
     * Restart the game
     */
    public void RestartGame()
    {
        Time.timeScale = 1;

        countDownTimer.ResetTime();
        audioController.playButtonSound();
        Canvas.SetActive(true);
        CanvasRestart.SetActive(false);
        CanvasLeaderboards.SetActive(false);
        ResumeButton.SetActive(true);

        scoreController.ResetScores();
        puckController.RestartPuckPosition();
        playerMovement.ResetPositon();
        aiMovement.ResetPositon();
        BuffPuck.ResetPuck();
        DebuffPuck.ResetPuck();
    }