Пример #1
0
 void Update()
 {
     if (playerInputController.FireButton)
     {
         projectileLauncher.Fire();
     }
     playerMovement.Direction = new Vector3(playerInputController.Horizontal, 0f, playerInputController.Vertical).normalized;
 }
Пример #2
0
 private void Attack()
 {
     RotateTowardsTarget();
     projectileLauncher.Fire();
 }