private void UpdateIdle() { if (leftController.GetTriggerDown()) { m_grabPoint = leftController.transform.position; m_grabbing = true; m_pullState = ePullState.PULLING_WITH_LEFT; leftController.TriggerHapticPulse(); if (leftController.hoveringRope) { cont.InvokePullStartEvent(); } } if (rightController.GetTriggerDown()) { m_grabPoint = rightController.transform.position; m_grabbing = true; m_pullState = ePullState.PULLING_WITH_RIGHT; rightController.TriggerHapticPulse(); if (rightController.hoveringRope) { cont.InvokePullStartEvent(); } } }
void VibrateControllers() { gunContReference.TriggerHapticPulse(); }