예제 #1
0
    public void OnRestartButton()
    {
        //Reset Scene
        GameLoop.CleanClones();
        GameLoop.InitGameLoop();
        _moveCamera.ResetCameraPosition();

        _checkRace = false;
        _newgameMenu.SetActive(true);
        _startMenu.SetActive(true);
        _pauseMenu.SetActive(false);
        _pause = false;
        _inGameSong.Stop();
        _menuSong.Play();
        Dice.Clear();
    }