public void Init() { var stats = getPlayerStats.Execute(); view.SetScore(stats.Score); view.SetMaxScore(stats.MaxScore); }
public void GameOver() { _state = StateType.GAMEOVER; _bestScore = (_score > _bestScore) ? _score : _bestScore; PlayView.Show(false); GameOverView.gameObject.SetActive(true); GameOverView.SetScore(_score, _bestScore); GameOverView.SetMissionClear(); GameOverView.ShowMedal(); }
public override void OnEnter() { view.enabled = true; scoreController.Save(); view.SetScore(scoreController.CurrentScore); }