// Start is called before the first frame update void Start() { Squeeze.AddOnChangeListener(OnLeftSqueeze, LeftHand); Squeeze.AddOnChangeListener(OnRightSqueeze, RightHand); GrabPinch.AddOnChangeListener(OnLeftGrabPinch, LeftHand); GrabPinch.AddOnChangeListener(OnRightGrabPinch, RightHand); }
public bool OnTriggerDown(SteamVR_Input_Sources input = SteamVR_Input_Sources.Any) { if (GrabPinchLock) { return(false); } return(GrabPinch.GetStateDown(input)); }