示例#1
0
        public override void OnRegister()
        {
            MainMenuView.HighScore.gameObject.SetActive(false);

            MainMenuView.Signal.AddListener(SetupGame);

            SetHighScoreSignal.AddListener(SetHighScore);
        }
示例#2
0
        public override void Execute()
        {
            var highScore = HighScoreService.GetHighScore();

            if (highScore > 0)
            {
                SetHighScoreSignal.Dispatch(highScore);
            }
        }
示例#3
0
        public override void OnRemove()
        {
            MainMenuView.Signal.RemoveListener(SetupGame);

            SetHighScoreSignal.RemoveListener(SetHighScore);
        }