public static void DestroyStepCells( Match3Map actualMap , List <Point[]> bangLines , List <Point> comboCells ) { for (int i = 0; i < bangLines.Count; i++) { for (int j = 0; j < bangLines[i].Length; j++) { actualMap.DestroyCell(bangLines[i][j]); } } for (int i = 0; i < comboCells.Count; i++) { actualMap.DestroyCell(comboCells[i]); } }
public static void ResetMap(Match3Map actualMap, int cellTypesCount) { for (int i = 0; i < actualMap.Width; i++) { for (int j = 0; j < actualMap.Height; j++) { actualMap.DestroyCell(new Point(i, j)); } } FillAllEmptyCells(actualMap, cellTypesCount); }