Beispiel #1
0
    private void ProcessMovementInput()
    {
        var horizontalInputToTurnTowardsPlayer = CalculateHorizontalInput();
        var verticalInputToApproachPlayer      = CalculateAccelerationInput();

        _hoverThruster.SetInput(vert: verticalInputToApproachPlayer, hori: horizontalInputToTurnTowardsPlayer, jmp: false);
    }
Beispiel #2
0
 private void ProcessMovementInput()
 {
     _hoverThruster.SetInput(vert: Input.GetAxis("Vertical"),
                             hori: Input.GetAxis("Horizontal"),
                             jmp: Input.GetKey(KeyCode.Space));
 }