void OnSceneGUI(SceneView sceneView)
{
Color outLineColor = GetTypeColor();
float r, g, b;
r = outLineColor.r;
g = outLineColor.g;
b = outLineColor.b;
Color fillColor = new Color(r, g, b, 0.1f);
Vector3[] v = new Vector3[_points.Count];
int pCount = v.Length / 4;
for(int i = 0; i < v.Length; i++)
{
v[i] = _points[i].ToVector3(_yPosition);
}
if(v.Length > 2)
{
Handles.color = GetTypeColor();
Handles.DrawPolyLine (v);
Handles.DrawLine(v[v.Length - 1], v[0]);
Handles.color = Color.white;
SceneView.RepaintAll();
}
}
#endif