public override void OnInspectorGUI() { DrawDefaultInspector(); component = (PointsContainerComponent)target; if (GUILayout.Button("Convert to prism")) { ConvertToPrism(); } }
public void setTriangles(PointsContainerComponent component) { this.component = component; setTriangles(); }