public override void OnRegister() { MainMenuView.HighScore.gameObject.SetActive(false); MainMenuView.Signal.AddListener(SetupGame); SetHighScoreSignal.AddListener(SetHighScore); }
public override void Execute() { var highScore = HighScoreService.GetHighScore(); if (highScore > 0) { SetHighScoreSignal.Dispatch(highScore); } }
public override void OnRemove() { MainMenuView.Signal.RemoveListener(SetupGame); SetHighScoreSignal.RemoveListener(SetHighScore); }