Ejemplo n.º 1
0
        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();
                }
            }
        }
Ejemplo n.º 2
0
 bool TriggerPulled()
 {
     return(gunContReference.GetTriggerDown());
 }