예제 #1
0
        void Start()
        {
            //Validate all the transform ocmponents
            ValidateComponent(LeftController);
            ValidateComponent(RightController);
            ValidateComponent(Headset);
            ValidateComponent(PlayerArea);

            leftController.Initialise();
            rightController.Initialise();
        }
예제 #2
0
        // Start is called before the first frame update
        void Start()
        {
            //Validate all the transform components
            ValidateComponent(leftController);
            ValidateComponent(rightController);
            ValidateComponent(headset);
            ValidateComponent(playArea);

            //get the VRcontrollerComponents from the relevant controller
            left  = leftController.GetComponent <VRController>();
            right = rightController.GetComponent <VRController>();

            left.Initialise();
            right.Initialise();
        }