Esempio n. 1
0
    void SwitchToRayCastMode()
    {
        marker.DisconnectController();
        grabber.ConnectController();

        sender.enabled       = true;
        grabber.enabled      = true;
        otherToggler.enabled = true;

        penModel.SetActive(false);
        SetDefaultMode();
    }
Esempio n. 2
0
    void SwitchToRayCastMode()
    {
        marker.DisconnectController();
        grabber.ConnectController();

        sender.enabled       = true;
        grabber.enabled      = true;
        otherToggler.enabled = true;

        penModel.SetActive(false);
        if (controller.hand == Handedness.LEFT)
        {
            avatar.LeftHandCustomPose = null;
        }
        else
        {
            avatar.RightHandCustomPose = null;
        }
    }