Exemplo n.º 1
0
    private void Update()
    {
        if (GvrControllerInput.SvrState == SvrControllerState.GvrController && GvrControllerInput.Recentered)
        {
            //mYaw = 0;
            Recenter();
        }

        if (GvrControllerInput.GetTouchDown())
        {
            mTouchTime = Time.time;
        }
        if (GvrControllerInput.GetTouch())
        {
            if (mTouchTime != 0 && Time.time - mTouchTime >= 1.0)
            {
                Recenter();
                mTouchTime = 0;
            }
        }

        NoloRecenter();
    }