private void Inject( ISceneTransitionService sceneTransitionService, IPlayerStatsModel playerStatsModel) { _sceneTransitionService = sceneTransitionService; _playerStatsModel = playerStatsModel; }
public RunEndController( IPlayerStatsModel playerStatsModel, IClosableViewMediator closableViewMediator) { playerStatsModel.IsAlive .IfFalse() .Subscribe(_ => closableViewMediator.Open(ClosableViewType.RunEnd)) .AddTo(Disposer); }