public void EndInteraction(trackcontroler wand) { if (wand == attachedWand) { attachedWand = null; currentlyinteracting = false; } }
public void BeginInteraction(trackcontroler wand) { attachedWand = wand; interactionPoint.position = wand.transform.position; interactionPoint.rotation = wand.transform.rotation; interactionPoint.SetParent(transform, true); currentlyinteracting = true; }