Beispiel #1
0
    void SwitchToPenMode()
    {
        penModel.SetActive(true);

        marker.ConnectController();
        grabber.DisconnectController();

        sender.enabled       = false;
        grabber.enabled      = false;
        otherToggler.enabled = false;

        SetPenPose();
    }
Beispiel #2
0
    void SwitchToPenMode()
    {
        marker.ConnectController();
        grabber.DisconnectController();

        sender.enabled       = false;
        grabber.enabled      = false;
        otherToggler.enabled = false;

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