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