コード例 #1
0
 protected virtual void AttemptHaptics(bool initialGrabAttempt)
 {
     if (grabbedObject != null && initialGrabAttempt)
     {
         VRTK_InteractHaptics doHaptics = grabbedObject.GetComponentInParent <VRTK_InteractHaptics>();
         if (doHaptics != null)
         {
             doHaptics.HapticsOnGrab(controllerReference);
         }
     }
 }
コード例 #2
0
 // Token: 0x060015A5 RID: 5541 RVA: 0x00076DC4 File Offset: 0x00074FC4
 protected virtual void AttemptHaptics(bool initialGrabAttempt)
 {
     if (this.grabbedObject != null && initialGrabAttempt)
     {
         VRTK_InteractHaptics componentInParent = this.grabbedObject.GetComponentInParent <VRTK_InteractHaptics>();
         if (componentInParent != null)
         {
             componentInParent.HapticsOnGrab(this.controllerReference);
         }
     }
 }