Exemplo n.º 1
0
 public void EndInteraction(FlyStickInteraction wand)
 {
     if (wand == attachedWand) //not needed for us
     {
         attachedWand         = null;
         currentlyInteracting = false;
     }
 }
Exemplo n.º 2
0
    public void BeginInteraction(FlyStickInteraction wand)
    {
        attachedWand = wand;
        interactionPoint.position = wand.transform.position;
        interactionPoint.rotation = wand.transform.rotation;
        interactionPoint.SetParent(transform, true);

        currentlyInteracting = true;
    }
Exemplo n.º 3
0
    public void initFlyStickEvents()
    {
        GameObject flyStick = GameObject.Find("Flystick");

        if (flyStick)
        {
            FlyStickInteraction flyStickInteractionLocal = flyStick.GetComponent <FlyStickInteraction>();
            if (flyStickInteractionLocal)
            {
                flyStickInteraction = flyStickInteractionLocal;
            }
        }
    }