Beispiel #1
0
 public void Initialize(ISessionPlayer sessionPlayer)
 {
     this.sessionPlayer      = sessionPlayer;
     sessionPlayer.GameOver += () => SetState(UiState.GameOver);
     this.sessionEvents      = sessionPlayer.SessionEventsProvider;
     hudScreen.Initialize(sessionEvents);
     SetState(UiState.Intro);
 }
 public PlaybackService(ISessionPlayer player, IQueryService[] queryServices)
 {
     _queryServices          = queryServices;
     _player                 = player;
     _player.FrameAvailable += FireFrameAvailable;
 }