Beispiel #1
0
 public void EndInteraction(ControllerInteraction wand)
 {
     if (wand == attachedWand)
     {
         attachedWand         = null;
         currentlyInteracting = false;
     }
 }
Beispiel #2
0
    public void BeginInteraction(ControllerInteraction wand)
    {
        attachedWand = wand;
        interactionPoint.position = attachedWand.transform.position;
        interactionPoint.rotation = attachedWand.transform.rotation;

        interactionPoint.SetParent(transform, true);
        currentlyInteracting = true;
    }
Beispiel #3
0
 private void UpdateInteraction(ControllerInteraction newInteraction)
 {
     if (newInteraction != _lastHit)
     {
         if (_lastHit)
         {
             _lastHit.IsFocused = false;
         }
         if (newInteraction)
         {
             newInteraction.IsFocused = true;
         }
         _lastHit = newInteraction;
     }
 }