//Visualisation:
    public override void DrawGizmos(GizmoManager gizmoManager)
    {
        gizmoManager.SetColor(Colour);
        Vector3 pos3d = new Vector3(Position().x, Position().y, 0.0f);

        gizmoManager.DrawSolidSphere(pos3d, Radius, "CircleCopters");
    }
 public void DrawGizmos(GizmoManager gizmoManager)
 {
     gizmoManager.SetColor(Color.black);
     for (int i = 0; i < CornerPoints.Length; i++)
     {
         Vector2 to    = CornerPoints[(i + 1) % CornerPoints.Length];
         Vector2 from  = CornerPoints[(i) % CornerPoints.Length];
         Vector3 to3   = new Vector3(to.x, to.y, 0.0f);
         Vector3 from3 = new Vector3(from.x, from.y, 0.0f);
         gizmoManager.DrawLine(from3, to3, 0.1f, "Walls");
     }
 }
Пример #3
0
 public void DrawGizmos(GizmoManager gizmoManager)
 {
     gizmoManager.SetColor(Color.black);
     gizmoManager.DrawSolidSphere(new Vector3(3.0f, 3.0f, 0.0f), 2, "2");
 }
Пример #4
0
 public void DrawText(GizmoManager gizmoManager)
 {
     gizmoManager.SetColor(Color.red);
     gizmoManager.DrawText("Text", new Vector3(3.0f, 3.0f, 0.0f), new Vector3(1, 1, 1), "InfoText");
 }