Example #1
0
    public void TouchesEnded(Vector3 inputPos)
    {
        Debug.Log("TouchesEndedLAppView");
        if (LAppDefine.DEBUG_TOUCH_LOG)
        {
            Debug.Log("touchesEnded");
        }
        if (LAppLive2DManager.Instance.IsTouchMode2D() == false)
        {
            UpdateTouchPos_3DCamera(inputPos);
        }
        else
        {
            UpdateTouchPos_2DCamera(inputPos);
        }

        dragMgr.Set(0, 0);

        if (!isMove)
        {
            float touchPos_plane2x2_X = touchPos_onPlane.x * 2 - 1;
            float touchPos_plane2x2_Y = -touchPos_onPlane.y * 2 + 1;
            model.TapEvent(touchPos_plane2x2_X, touchPos_plane2x2_Y);
        }
        else
        {
            isMove = false;
        }
    }
Example #2
0
    public void TouchesEnded(Vector3 inputPos)
    {
        if (LAppDefine.DEBUG_TOUCH_LOG)
        {
            Debug.Log("touchesEnded");
        }
        if (LAppLive2DManager.Instance.IsTouchMode2D() == false)
        {
            //  カメラの Projection が Perspective である場合(3Dカメラ)
            UpdateTouchPos_3DCamera(inputPos);
        }
        else
        {
            //  カメラの Projection が Orthographic である場合(2Dカメラ)
            UpdateTouchPos_2DCamera(inputPos);
        }

        dragMgr.Set(0, 0);

        if (!isMove)
        {
            float touchPos_plane2x2_X = touchPos_onPlane.x * 2 - 1;
            float touchPos_plane2x2_Y = -touchPos_onPlane.y * 2 + 1;
            model.TapEvent(touchPos_plane2x2_X, touchPos_plane2x2_Y);
        }
        else
        {
            isMove = false;
        }
    }
Example #3
0
    public void TouchesEnded(Vector3 inputPos)
    {
        if (LAppDefine.DEBUG_TOUCH_LOG)
        {
            Debug.Log("touchesEnded");
        }

        //  カメラの Projection が Orthographic である場合(2Dカメラ)
        UpdateTouchPos_2DCamera(inputPos);

        dragMgr.Set(0, 0);

        if (!isMove)
        {
            float touchPos_plane2x2_X = touchPos_onPlane.x * 2 - 1;
            float touchPos_plane2x2_Y = -touchPos_onPlane.y * 2 + 1;
            model.TapEvent(touchPos_plane2x2_X, touchPos_plane2x2_Y);
        }
        else
        {
            isMove = false;
        }
    }