Exemplo n.º 1
0
    private void RotateVertical()
    {
        Vector3 rotationCamPivot = _camPivot.transform.localEulerAngles;

        rotationCamPivot.x += Input.GetAxis(_input.CamVertical) * -_camRotationSpeed;
        rotationCamPivot.x  = PlayerBehaviour.ClampAngle(rotationCamPivot.x, -10, 50);

        _camPivot.localEulerAngles = new Vector3(rotationCamPivot.x, _camPivot.localEulerAngles.y, _camPivot.localEulerAngles.z);
    }