Beispiel #1
0
    private void Update()
    {
        UpdateVelocity();

        if (VRInput.GetDown(GenericVRButton.Hand, handedness))
        {
            Grab();
        }
        else if (VRInput.GetUp(GenericVRButton.Hand, handedness))
        {
            Drop();
        }

        if (grabbedComponent)
        {
            grabbedComponent.CheckForUse();
        }
    }