MotherShip.YawAndPitchPlayerInput C# (CSharp) 메소드

YawAndPitchPlayerInput() 공개 메소드

public YawAndPitchPlayerInput ( ) : void
리턴 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;
        }
    }