private void StartGameOver()
        {
            Pause.StopTime();
            _gameOverMenu.ShowMenu();
            IScoreData recordData = _recordSaver.Load(_saveFileName);
            IScoreData scoreData  = _scoreModel.Score;

            if (scoreData.Score > recordData.Score)
            {
                _recordSaver.Save(_saveFileName, scoreData);
                _gameOverMenu.ChangeScore(scoreData.Score, true);
            }
            else
            {
                _gameOverMenu.ChangeScore(scoreData.Score, false);
            }
        }
Exemple #2
0
 public void ContinueGame()
 {
     _menuPanel.gameObject.SetActive(false);
     _pauseButton.gameObject.SetActive(true);
     Pause.StartTime();
 }
Exemple #3
0
 public void  StartPause()
 {
     Pause.StopTime();
     _pauseButton.gameObject.SetActive(false);
     _menuPanel.gameObject.SetActive(true);
 }