Exemplo n.º 1
0
 public override void StartUsing(GameObject currentUsingObject)
 {
     base.StartUsing(currentUsingObject);
     if (safetySwitch.safetyOff)
     {
         slide.Fire();
         FireBullet();
         VRTK_SharedMethods.TriggerHapticPulse(VRTK_DeviceFinder.GetControllerIndex(controllerEvents.gameObject), 0.63f, 0.2f, 0.01f);
     }
     else
     {
         VRTK_SharedMethods.TriggerHapticPulse(VRTK_DeviceFinder.GetControllerIndex(controllerEvents.gameObject), 0.08f, 0.1f, 0.01f);
     }
 }
Exemplo n.º 2
0
 public override void StartUsing(GameObject currentUsingObject)
 {
     base.StartUsing(currentUsingObject);
     if (safetySwitch.safetyOff)
     {
         slide.Fire();
         FireBullet();
         controllerActions.TriggerHapticPulse(0.63f, 0.2f, 0.01f);
     }
     else
     {
         controllerActions.TriggerHapticPulse(0.08f, 0.1f, 0.01f);
     }
 }
Exemplo n.º 3
0
 public override void StartUsing(VRTK_InteractUse currentUsingObject)
 {
     base.StartUsing(currentUsingObject);
     if (safetySwitch.safetyOff)
     {
         slide.Fire();
         FireBullet();
         VRTK_ControllerHaptics.TriggerHapticPulse(VRTK_ControllerReference.GetControllerReference(controllerEvents.gameObject), 0.63f, 0.2f, 0.01f);
     }
     else
     {
         VRTK_ControllerHaptics.TriggerHapticPulse(VRTK_ControllerReference.GetControllerReference(controllerEvents.gameObject), 0.08f, 0.1f, 0.01f);
     }
 }