Ejemplo n.º 1
0
 private void DrawBackground()
 {
     _draw.DrawInInspector(_rect, () =>
     {
         GLUtil.DrawRect(_rect, new Color(0.32f, 0.32f, 0.32f));
     });
 }
Ejemplo n.º 2
0
 private void DrawShape(Vector2[] drawPoints)
 {
     _draw.DrawInInspector(_rect, () =>
     {
         GLUtil.DrawLineStrip(drawPoints, new Color(0.66f, 0.66f, 0.66f), true);
     });
 }
Ejemplo n.º 3
0
 private void DrawPoints(Vector2[] drawPoints)
 {
     foreach (Vector2 drawPoint in drawPoints)
     {
         _draw.DrawInInspector(_rect, () =>
         {
             Rect point = new Rect(Vector2.zero, Vector2.one * 4)
             {
                 center = drawPoint
             };
             GLUtil.DrawHollowRect(point, Color.white);
         });
     }
 }