コード例 #1
0
 public GameRoundDurationController(
     IGameRoundDurationModel gameRoundDurationModel,
     IAvatarLocator avatarLocator,
     IGameRoundStateModel gameGameRoundStateModel,
     IPauseStateModel pauseStateModel)
 {
     _gameRoundDurationModel  = gameRoundDurationModel;
     _avatarLocator           = avatarLocator;
     _gameGameRoundStateModel = gameGameRoundStateModel;
     _pauseStateModel         = pauseStateModel;
 }
コード例 #2
0
        public PlayerStatisticsController(
            IPlayerStatisticsModel model,
            IGameRoundStateModel gameRoundStateModel)
        {
            _model = model;
            _gameRoundStateModel = gameRoundStateModel;

            _gameRoundStateModel.OnRoundEnded
            .Subscribe(_ => OnRoundEnded())
            .AddTo(Disposer);
        }