using UnityEngine; using UnityEngine.XR.Interaction.Toolkit; public class XRPumpHold : XRHandHold { protected XRTwoHandPumpInteractable pump; public void Setup(XRTwoHandPumpInteractable pump) { this.pump = pump; } protected override void Grab(SelectEnterEventArgs args) { base.Grab(args); pump.SetupGrab(args); } protected override void Drop(SelectExitEventArgs args) { base.Drop(args); pump.CancelGrab(args); } }