Exemplo n.º 1
0
 // Update is called once per frame
 void FixedUpdate()
 {
     //calls the players movement behaviour's move function using read values as input
     _playerMovement.Move(_playerControls.Ship.Movement.ReadValue <Vector2>());
     //calls the shoot behaviours fire using the action phase of Fire
     _playerShootBehaviour.Fire(_playerControls.Ship.Fire.phase);
 }
 void OnFire(InputAction.CallbackContext context)
 {
     _gun.Fire(context.action.phase);
 }