public void DrawPolyline(Dictionary <string, string> dict, CCDrawNode draw) { List <CCPoint> points = ParsePoints(dict["points"]); var color = new CCColor4B(255, 0, 255); for (int i = 0; i < points.Count - 1; i++) { draw.AddLineVertex(new CCV3F_C4B(points[i], color)); draw.AddLineVertex(new CCV3F_C4B(points[i + 1], color)); } }