コード例 #1
0
 // Use this for initialization
 void Start()
 {
     Shield_Ref      = VRTRIXGloveVRInteraction.CheckDeviceModelName(HANDTYPE.NONE, InteractiveDevice.SHIELD);
     Shield          = gameObject;
     isHoveredbyHand = false;
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     Ex_Ref          = VRTRIXGloveVRInteraction.CheckDeviceModelName(HANDTYPE.NONE, InteractiveDevice.EXTINGUISHER);
     Ex              = gameObject;
     isHoveredbyHand = false;
 }
コード例 #3
0
 public bool GetPressButtonDown()
 {
     return(VRTRIXGloveVRInteraction.GetGesture(this.GetHandType()) == VRTRIXGloveGesture.BUTTONCLICK);
 }
コード例 #4
0
 //-------------------------------------------------
 // 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);
 }
コード例 #5
0
 //-------------------------------------------------
 // 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);
 }