public override void Print() { base.Print(); switch (type) { case Types.Line: if (line != null) { line.Print(); } break; case Types.Box: if (box != null) { box.Print(); } break; case Types.Text: if (text != null) { text.Print(); } break; case Types.Sphere: if (sphere != null) { sphere.Print(); } break; case Types.Unknown: default: Debug.Log("Unknown marker type!!!"); break; } }
public override void Print() { base.Print(); marker.Print(); }