```
float MapDistanceToRange(float distance) {
    float mappedDistance = (distance - 200) / 100;
    return Mathf.Clamp(mappedDistance, 0, 1);
}
```
```
float MapDistanceToRange(float distance) {
    float mappedDistance = (distance - 200) / 100;
    return Mathf.Clamp(mappedDistance, 0, 1);
}
```