private bool Reset()
{
if(verts == null || verts.Count == 0 || EditorUtility.DisplayDialog("Reset points", "Are you sure? This operation will reset points.", "Yes", "Cancel")) {
verts = new List<Vertex>();
segments = new List<Segment>();
holes = new List<Vector2>();
meshDirty = true;
generatedMesh = null;
#if UNITY_EDITOR
EditorUtility.SetDirty(this);
if (SceneView.currentDrawingSceneView != null) {
SceneView.currentDrawingSceneView.Repaint();
}
#endif
return true;
}
return false;
}