示例#1
0
        void Awake()
        {
            // get hand anchors
            rightHandAnchor = GameObject.FindWithTag("RightHandAnchor");
            leftHandAnchor  = GameObject.FindWithTag("LeftHandAnchor");

            controllerRayCaster       = GameObject.FindWithTag("MainCamera").GetComponent <ControllerRayCaster>();
            playerController          = GameObject.FindWithTag("OVRPlayerController").GetComponent <PlayerController>();
            haltUpdateMovementInitial = playerController.HaltUpdateMovement;
        }