private void Construct(PointersInputDetector detectorPrefab, int maxPointerCount, float maxRaycastDistance, bool triggerRaycastable) { _detectorPrefab = detectorPrefab; _maxPointerCount = maxPointerCount; _maxRaycastDistance = maxRaycastDistance; _lastCheckedTime = -1; _triggerRaycastable = triggerRaycastable; }
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); }