private void BuildNewPathIfNeeded(Vector2 roundedPosition) { if (Vector2.Distance(roundedPosition, _tileManager.LastTilePosition) < _minDistanceToEnd) { _tileManager.BuildPath(10); } }