示例#1
0
 protected virtual void CheckRumbleController(VRTK_InteractableObject touchedObjectScript)
 {
     if (!triggerRumble)
     {
         VRTK_InteractHaptics doHaptics = touchedObject.GetComponentInParent <VRTK_InteractHaptics>();
         if (doHaptics != null)
         {
             triggerRumble = true;
             doHaptics.HapticsOnTouch(controllerReference);
             Invoke("ResetTriggerRumble", doHaptics.durationOnTouch);
         }
     }
 }
示例#2
0
 // Token: 0x060015F6 RID: 5622 RVA: 0x00077D08 File Offset: 0x00075F08
 protected virtual void CheckRumbleController(VRTK_InteractableObject touchedObjectScript)
 {
     if (!this.triggerRumble)
     {
         VRTK_InteractHaptics componentInParent = this.touchedObject.GetComponentInParent <VRTK_InteractHaptics>();
         if (componentInParent != null)
         {
             this.triggerRumble = true;
             componentInParent.HapticsOnTouch(this.controllerReference);
             base.Invoke("ResetTriggerRumble", componentInParent.durationOnTouch);
         }
     }
 }