// Use this for initialization void Start() { Shield_Ref = VRTRIXGloveVRInteraction.CheckDeviceModelName(HANDTYPE.NONE, InteractiveDevice.SHIELD); Shield = gameObject; isHoveredbyHand = false; }
// Use this for initialization void Start() { Ex_Ref = VRTRIXGloveVRInteraction.CheckDeviceModelName(HANDTYPE.NONE, InteractiveDevice.EXTINGUISHER); Ex = gameObject; isHoveredbyHand = false; }
public bool GetPressButtonDown() { return(VRTRIXGloveVRInteraction.GetGesture(this.GetHandType()) == VRTRIXGloveGesture.BUTTONCLICK); }
//------------------------------------------------- // Was the standard interaction button just released? In VR, this is a trigger press. In 2D fallback, this is a mouse left-click. //------------------------------------------------- public bool GetTeleportButtonUp() { return(VRTRIXGloveVRInteraction.GetGesture(this.GetHandType()) != VRTRIXGloveGesture.BUTTONTELEPORT); }
//------------------------------------------------- // Was the standard interaction button just released? In VR, this is a trigger press. In 2D fallback, this is a mouse left-click. //------------------------------------------------- public bool GetStandardInteractionButtonUp() { return(VRTRIXGloveVRInteraction.GetGesture(this.GetHandType()) != VRTRIXGloveGesture.BUTTONGRAB); }