private void OnGUI() { if (GUILayout.Button("ShowLine")) { wireFrame.SwitchToLine(lineRule); } if (GUILayout.Button("ShowModel")) { wireFrame.SwitchToModel(modelRule); } }