コード例 #1
0
 public void EndInteraction(InteractingWithItemsController wand)
 {
     if (wand == attachedWand)
     {
         attachedWand         = null;
         currentlyInteracting = false;
     }
 }
コード例 #2
0
 public void BeginInteraction(InteractingWithItemsController wand)
 {
     attachedWand = wand;
     interactionPoint.position = wand.transform.position;
     interactionPoint.rotation = wand.transform.rotation;
     interactionPoint.SetParent(transform, true);
     currentlyInteracting = true;
 }