コード例 #1
0
 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;
 }
コード例 #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;
        }