コード例 #1
0
        //-------------------------------------------------
        private bool WasTeleportButtonReleased(VRTRIXGloveGrab hand)
        {
            if (IsEligibleForTeleport(hand))
            {
                //if (hand.noSteamVRFallbackCamera != null)
                //{
                //    return Input.GetKeyUp(KeyCode.T);
                //}
                //else
                //{
                //return hand.controller.GetPressUp(SteamVR_Controller.ButtonMask.Touchpad);
                //}
                return(hand.GetTeleportButtonUp());
            }

            return(false);
        }