예제 #1
0
 private void Construct(PointersInputDetector detectorPrefab, int maxPointerCount,
                        float maxRaycastDistance, bool triggerRaycastable)
 {
     _detectorPrefab     = detectorPrefab;
     _maxPointerCount    = maxPointerCount;
     _maxRaycastDistance = maxRaycastDistance;
     _lastCheckedTime    = -1;
     _triggerRaycastable = triggerRaycastable;
 }
예제 #2
0
 private PointersInputDetector getDetector()
 {
     if (_detector == null)
     {
         _detector = createInputDetector(_detectorPrefab, new PrefabFactory.Parameter[] {
             new PrefabFactory.Parameter(_maxPointerCount), new PrefabFactory.Parameter(_maxRaycastDistance),
             new PrefabFactory.Parameter(_triggerRaycastable)
         });
     }
     return(_detector);
 }