Esempio n. 1
0
        public override void SetGrabableObjectConfiguration(DIOController grabableObject, int id)
        {
            if (dioManager.usePitchGrab)
            {
                grabableObject.pitchGrabObject.pinchDetectorLeft  = dioManager.pinchDetectorLeft;
                grabableObject.pitchGrabObject.pinchDetectorRight = dioManager.pinchDetectorRight;
            }

            grabableObject.Initialize(this, id);
        }
Esempio n. 2
0
        public override void SetGrabableObjectConfiguration(DIOController grabableObject, int id)
        {
            //DELETE THIS change to new archtecture
            if (GLPlayerPrefs.GetBool(ProfileManager.Instance.currentEvaluationScope, "usePitchGrab"))
            {
                grabableObject.pitchGrabObject.pinchDetectorLeft  = InteractionManager.Instance.pitchGrabManager.pinchDetectorLeft;
                grabableObject.pitchGrabObject.pinchDetectorRight = InteractionManager.Instance.pitchGrabManager.pinchDetectorRight;
            }

            grabableObject.Initialize(this, id);
        }