public void NewGameBtn()
 {
     m_ViewModelController.getViewModel(PanelUI.LapResultsPanel).hidePanel();
     hidePanel();
     EventSystem.current.SetSelectedGameObject(null);
     m_MapController.PausedGame();
     m_MapController.SetStartDefaultPosition();
     //SceneManager.LoadScene(nameScene);
     Time.timeScale = 1f;
     Cursor.visible = !Cursor.visible;
 }
Exemple #2
0
        public void confirmNewGameBtnYes()
        {
            StartAnimViewModel startAnimPanel = m_ViewModelController.getViewModel(PanelUI.StartAnimPanel).GetComponent <StartAnimViewModel>();

            startAnimPanel.enabled = false;
            hidePanel();
            EventSystem.current.SetSelectedGameObject(null);
            m_MapController.PausedGame();
            m_MapController.SetStartDefaultPosition();
            Time.timeScale = 1f;
            Cursor.visible = !Cursor.visible;
        }