Exemplo n.º 1
0
    public void GrabHeld(SteamVR_Behaviour_Boolean beh, SteamVR_Input_Sources src, bool pressed)
    {
        if (!pressed)
        {
            return;
        }

        foreach (HandController.handCollision c in currentColliding)
        {
            InteractionInterface interact = c.col.GetComponent <InteractionInterface>();
            if (interact != null)
            {
                interact.grabHeld(c.hand);
            }
        }
    }