public void Initialize() { _restartButton.OnClickAsObservable() .Subscribe(_ => OnRestartClicked()) .AddTo(Disposer); _goToSettingsButton.OnClickAsObservable() .Subscribe(_ => OnGoToSettingsClicked()) .AddTo(Disposer); _goToTitleButton.OnClickAsObservable() .Subscribe(_ => OnGoToTitleClicked()) .AddTo(Disposer); OnOpened .Subscribe(_ => _gameRoundStateController.PauseRound(true)) .AddTo(Disposer); OnClosed .Subscribe(_ => _gameRoundStateController.PauseRound(false)) .AddTo(Disposer); Localize(); }