Exemplo n.º 1
0
 public void Construct(
     PlayerModel playerModel,
     PlayableShip shipView,
     InputReceivedSignal inputReceivedSignal,
     PlayerHitSignal playerHitSignal,
     PlayerDeathSignal playerDeathSignal)
 {
     _playerModel         = playerModel;
     _shipView            = shipView;
     _inputReceivedSignal = inputReceivedSignal;
     _playerHitSignal     = playerHitSignal;
     _playerDeathSignal   = playerDeathSignal;
 }
Exemplo n.º 2
0
 public void Construct(InputReceivedSignal inputReceivedSignal)
 {
     _inputReceivedSignal = inputReceivedSignal;
 }
Exemplo n.º 3
0
 private void OnDisable()
 {
     _inputReceivedSignal -= OnReceiveInput;
     Cursor.visible        = true;
 }
Exemplo n.º 4
0
 private void OnEnable()
 {
     _inputReceivedSignal += OnReceiveInput;
 }
Exemplo n.º 5
0
 public void Construct(InputReceivedSignal inputReceivedSignal)
 {
     _inputReceivedSignal = inputReceivedSignal;
     _cursorImage         = GetComponent <Image>();
     _canvas = GetComponentInParent <Canvas>();
 }
Exemplo n.º 6
0
 public void Dispose()
 {
     _inputReceivedSignal -= OnReceiveInput;
     _playerHitSignal     -= _playerModel.TakeDamage;
 }
Exemplo n.º 7
0
 public void Initialize()
 {
     _inputReceivedSignal += OnReceiveInput;
     _playerHitSignal     += _playerModel.TakeDamage;
 }