RemoveTrees() private method

private RemoveTrees ( Vector2 position, float radius, int prototypeIndex ) : void
position Vector2
radius float
prototypeIndex int
return void
 public static void RemoveTrees(Terrain terrain, float xBase, float yBase, bool clearSelectedOnly)
 {
   float radius = TreePainter.brushSize / terrain.terrainData.size.x;
   terrain.RemoveTrees(new Vector2(xBase, yBase), radius, !clearSelectedOnly ? -1 : TreePainter.selectedTree);
 }