private void VRTriggerCheck() { string indexTrigger = ""; string handTrigger = ""; if (handNow == HandPosition.LeftHand) { indexTrigger = "PrimaryIndexTrigger"; handTrigger = "PrimaryHandTrigger"; } else { indexTrigger = "SecondaryIndexTrigger"; handTrigger = "SecondaryHandTrigger"; } //---VRButtonCheck---// //IndexTriggerTrue if (Input.GetAxisRaw(indexTrigger) > 0.5) { Hand.setIndexTrigger(true); } //IndexTriggerFalse if (Input.GetAxisRaw(indexTrigger) <= 0.5) { Hand.setIndexTrigger(false); } //HandTriggerTrue-False if (Input.GetAxisRaw(handTrigger) >= 0.1) { Hand.setHandTrigger(true); } else { Hand.setHandTrigger(false); } }