Exemple #1
0
 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();
 }
Exemple #3
0
 public void RemoveGrabListener(GrabListener listener)
 {
     grabListeners.Remove(listener);
 }