/// <summary> /// Set up for finding canidate SnapColliders when user grabs CodeBlock /// </summary> /// <param name="call">Manipulation Event when user grabs block</param> void OnManipulationStart(ManipulationEventData call) { CurrentlyDraggingCodeBlockSnap = this; enabled = true; CodeBlockManager.instance.EnableCollidersCompatibleCodeBlock(MyCodeBlock); snapColliderGroup?.DisableAllCollidersAndChildrenColliders(); // run raycast StartCoroutine(ShootRayFromHandThroughSnapColliders(call.Pointer)); }
void OnManipulationStart(ManipulationEventData call) { mySnapColliders?.EnableAllCompatibleColliders(); mySnapColliders?.DisableAllCollidersAndChildrenColliders(); currentlyDraggingCBS = this; }