public void EndInteraction(FlyStickInteraction wand) { if (wand == attachedWand) //not needed for us { attachedWand = null; currentlyInteracting = false; } }
public void BeginInteraction(FlyStickInteraction wand) { attachedWand = wand; interactionPoint.position = wand.transform.position; interactionPoint.rotation = wand.transform.rotation; interactionPoint.SetParent(transform, true); currentlyInteracting = true; }
public void initFlyStickEvents() { GameObject flyStick = GameObject.Find("Flystick"); if (flyStick) { FlyStickInteraction flyStickInteractionLocal = flyStick.GetComponent <FlyStickInteraction>(); if (flyStickInteractionLocal) { flyStickInteraction = flyStickInteractionLocal; } } }