示例#1
0
    // Update is called once per frame
    void Update()
    {
        CheckZoom();
        CheckPan();

        // Perform Shake
        if (Input.GetKeyDown(KeyCode.X))
        {
            mTheCamera.SetShakeParameters(mFreg.value(), mDuration.value());
            mTheCamera.ShakeCamera(new Vector2(mDX.value(), mDY.value()));
        }
    }