public void NotifyGrab(InteractorRaw interactor) { if (!interactor) { return; } if (grabbedObjects.Count == 0) { } BasicAction grabTypeAction = null; //Utils.CleanInteractions.CleanInteracableTouching(interactor, ref parent.touch.touchedObjects); if (grabbedObjects.Count < 1) { grabTypeAction = parent.PrimaryActionEvent(parent, interactor); } else //bool canGrab if (grabbedObjects.Count == 1) { grabTypeAction = parent.SecondaryActionEvent(parent, interactor); } if (grabTypeAction != null) { grabbedObjects.Add(new GrabData(interactor, parent, grabTypeAction)); parent.Grabbed?.Invoke(interactor); GrabProccess(); } }