public void ChooseMap(int index) { if (index < mapImageList.Length && index < gridSizeList.Length && index >= 0) { mapEditor.SetMapImage(mapImageList[index]); mapEditor.CreateCell(gridSizeList[index].x, gridSizeList[index].y); } }