Beispiel #1
0
        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);
        }
Beispiel #2
0
 public override RectInt Fill(RectInt area, float difficulty)
 {
     return(_obstacle.Fill(area, difficulty).DrawBounds(Color.red, Vector2.one * 0.5f));
 }