コード例 #1
0
    void VerticalProc()
    {
        //=================================================================
        //カメラ移動処理 上下 (L1を押しながらだと、寄せ・引き
        //=================================================================
        float _leftVertical = iController.GetCameraVertical();

        if (iController.GetCameraModeButton()) //L1が押されているかどうか
        {
            camHeight = Mathf.Clamp(camHeight + _leftVertical * CAMERA_MOVE_SPEED, 1F, 8F);
        }
        else
        {
            camDist = Mathf.Clamp(camDist + _leftVertical * CAMERA_MOVE_SPEED, 5F, 15F);
        }
    }