Exemplo n.º 1
0
 private void Start()
 {
     playerAnimations               = GetComponent <PlayerAnimations>();
     playerMovement                 = GetComponent <PlayerMovement>();
     playerRenderer                 = GetComponent <PlayerRenderer>();
     playerAiInteractions           = GetComponent <PlayerAIInteractions>();
     movementInput                  = GetComponent <IMovementInput>();
     movementInput.OnInteractEvent += () => playerAiInteractions.Interact(playerRenderer.IsSpriteFlipped);
 }
Exemplo n.º 2
0
 private void Start()
 {
     playerMovement       = GetComponent <PlayerMovement>();
     playerRenderer       = GetComponent <PlayerRenderer>();
     playerAiInteractions = GetComponent <PlayerAIInteractions>();
 }