Esempio n. 1
0
        public void Init()
        {
            var stats = getPlayerStats.Execute();

            view.SetScore(stats.Score);
            view.SetMaxScore(stats.MaxScore);
        }
Esempio n. 2
0
    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();
    }
Esempio n. 3
0
 public override void OnEnter()
 {
     view.enabled = true;
     scoreController.Save();
     view.SetScore(scoreController.CurrentScore);
 }