Exemplo n.º 1
0
 void Update()
 {
     if (playerInputController.FireButton)
     {
         projectileLauncher.Fire();
     }
     playerMovement.Direction = new Vector3(playerInputController.Horizontal, 0f, playerInputController.Vertical).normalized;
 }
Exemplo n.º 2
0
 private void Attack()
 {
     RotateTowardsTarget();
     projectileLauncher.Fire();
 }