public void EndInteraction(ControllerInteraction wand) { if (wand == attachedWand) { attachedWand = null; currentlyInteracting = false; } }
public void BeginInteraction(ControllerInteraction wand) { attachedWand = wand; interactionPoint.position = attachedWand.transform.position; interactionPoint.rotation = attachedWand.transform.rotation; interactionPoint.SetParent(transform, true); currentlyInteracting = true; }
private void UpdateInteraction(ControllerInteraction newInteraction) { if (newInteraction != _lastHit) { if (_lastHit) { _lastHit.IsFocused = false; } if (newInteraction) { newInteraction.IsFocused = true; } _lastHit = newInteraction; } }