Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void CorrectRadius()
- {
- bool isAnyHit = false;
- foreach (var checker in _checkers)
- if (checker.IsHit(out float distance))
- {
- _radius = Mathf.Lerp(_radius, distance, _radiusLerpSpeed);
- isAnyHit = true;
- }
- if (isAnyHit || _radius == _rayDistance) return;
- _radius = Mathf.Lerp(_radius, _rayDistance, _radiusLerpSpeed);
- }
Add Comment
Please, Sign In to add comment