public InnerProvider(CellMatrix matrix, StandardCellHeightSettingsProvider parent) { _matrix = matrix; _maxWalkableSlopeAngle = parent._maxWalkableSlopeAngle; _maxClimbHeight = parent._maxClimbHeight; _maxDropHeight = parent._maxDropHeight; _granularity = parent._granularity; _offsets = new Vector3[3]; _heightSampler = (GameServices.heightStrategy.heightMode == HeightSamplingMode.HeightMap) ? (ISampleHeightsSimple)matrix : GameServices.heightStrategy.heightSampler; }
public InnerProvider(CellMatrix matrix) { _matrix = matrix; _offsets = new Vector3[3]; _heightSampler = (GameServices.heightStrategy.heightMode == HeightSamplingMode.HeightMap) ? (ISampleHeightsSimple)_matrix : GameServices.heightStrategy.heightSampler; }