Пример #1
0
 public void EndInteraction(trackcontroler wand)
 {
     if (wand == attachedWand)
     {
         attachedWand         = null;
         currentlyinteracting = false;
     }
 }
Пример #2
0
    public void BeginInteraction(trackcontroler wand)
    {
        attachedWand = wand;
        interactionPoint.position = wand.transform.position;
        interactionPoint.rotation = wand.transform.rotation;
        interactionPoint.SetParent(transform, true);

        currentlyinteracting = true;
    }