public override RectInt Fill(RectInt area, float difficulty) { var obstacleBounds = _obstacle.Fill(area, difficulty); if (obstacleBounds.width == 0) { Fill(obstacleBounds.BuildAbove(area.yMax - obstacleBounds.yMax)); Fill(obstacleBounds.BuildBelow(obstacleBounds.yMin - area.yMin)); } return(obstacleBounds); }
public override RectInt Fill(RectInt area, float difficulty) { return(_obstacle.Fill(area, difficulty).DrawBounds(Color.red, Vector2.one * 0.5f)); }