static void DisplayGizmos(MapEditorModel mapEditorModel) { MapEditorData data = mapEditorModel.Data; if (data == null) { return; } if (data.Grid.DrawGrid) { GridDrawer.DrawGizmosGrid(mapEditorModel.Data.Grid); } if (data.DrawCase) { DrawGizmosCases(mapEditorModel); } }