MotherShip.YawAndPitchPlayerInput C# (CSharp) Method

YawAndPitchPlayerInput() public method

public YawAndPitchPlayerInput ( ) : void
return void
    public void YawAndPitchPlayerInput()
    {
        if (Input.GetKey (KeyCode.LeftAlt)) {
            yawInput = Input.GetAxis ("Mouse X");
            pitchInput = Input.GetAxis ("Mouse Y");
        }
        if (Input.GetKey (KeyCode.A)) {
            rollInput = 1f;
        }
        if (Input.GetKey (KeyCode.D)) {
            rollInput = -1f;
        }
    }