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); } }
public void StartPause() { Pause.StopTime(); _pauseButton.gameObject.SetActive(false); _menuPanel.gameObject.SetActive(true); }