public static void InitilizaMatrixes(List<Cube[,]> matrixes) { Cube[,] currMatrix = null; for (int layer = 0; layer < Program.DEPTH; layer++) { currMatrix = new Cube[Program.HEIGHT, Program.WIDTH]; matrixes.Add(currMatrix); } }
public static void InitilizeLiquid(Cube[,] liquid) { liquid = new Cube[Program.HEIGHT, Program.WIDTH]; for (int row = 0; row < Program.HEIGHT; row++) { for (int col = 0; col < Program.WIDTH; col++) { liquid[row, col].Value = int.MaxValue; } } }