Пример #1
0
 public void Construct(ControllerGestureConfig config)
 {
     minAcelerationThreshold = config.minAcelerationThreshold;
     maxAcelerationThreshold = config.maxAcelerationThreshold;
     sampleCount             = config.sampleCount;
 }
Пример #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="controllerType"></param>
        /// <param name="grabbableList"></param>
        public void Construct(List <VR_Interactable> interactList, List <VR_Highlight> highlightList, ControllerGestureConfig config)
        {
            //set controller type and get a refenrece to the grabbableList
            this.interactList  = interactList;
            this.highlightList = highlightList;

            VR_ControllerGesture controllerGesture = GetComponent <VR_ControllerGesture>();

            if (controllerGesture != null)
            {
                controllerGesture.Construct(config);
            }
        }