public void AddGrabListener(GrabListener listener) { if (!grabListeners.Contains(listener)) { grabListeners.Add(listener); } }
/// <summary> /// Performs the grab logic. /// </summary> /// <param name="interactable">The Interactable being grabbed.</param> protected virtual void PerformGrab(InteractableFacade interactable) { ShouldIgnoreEnablePointer = true; GrabListener.Receive(); }
public void RemoveGrabListener(GrabListener listener) { grabListeners.Remove(listener); }