Пример #1
0
 public PlayingState(
     StateFactory stateFactory,
     FloorTouchedSignal floorTouchedSignal,
     AttachToPlayerSignal attachToPlayerSignal,
     LevelCompletedSignal levelCompletedSignal,
     ResetPlayerStateSignal resetPlayerStateSignal,
     GiveScorepointsSignal giveScorepointsSignal)
 {
     _stateFactory           = stateFactory;
     _resetPlayerStateSignal = resetPlayerStateSignal;
     _giveScorepointsSignal  = giveScorepointsSignal;
     floorTouchedSignal     += OnGameEnded;
     levelCompletedSignal   += OnLevelCompleted;
     attachToPlayerSignal.Fire(false);
 }
Пример #2
0
 public void Construct(FloorTouchedSignal floorTouchedSignal)
 {
     _floorTouchedSignal = floorTouchedSignal;
 }