public void FindObstaclesInBox(AxisAlignedBox box, CollisionTileManager.AddTreeObstaclesCallback callback) { if (box.Intersects(location)) callback(speedTree); }
public void FindObstaclesInBox(AxisAlignedBox box, CollisionTileManager.AddTreeObstaclesCallback callback) { if (box.Intersects(bounds)) { foreach (Tree t in trees) { t.FindObstaclesInBox(box, callback); } } }