public void Construct( PlayerModel playerModel, PlayableShip shipView, InputReceivedSignal inputReceivedSignal, PlayerHitSignal playerHitSignal, PlayerDeathSignal playerDeathSignal) { _playerModel = playerModel; _shipView = shipView; _inputReceivedSignal = inputReceivedSignal; _playerHitSignal = playerHitSignal; _playerDeathSignal = playerDeathSignal; }
public override void Enter() { _gameStateChangedSignal.Fire(this); _playerDeathSignal += GameOverHelper; }
public override void Exit() { _playerDeathSignal -= GameOverHelper; }
public void Construct(GameStateChangedSignal gameStateChangedSignal, PlayerDeathSignal playerDeathSignal) { _gameStateChangedSignal = gameStateChangedSignal; _playerDeathSignal = playerDeathSignal; }