public void GenerateMeshInit(int[,] i_aMap, float i_fSquareSize, float i_fWallHeight, float i_fBumpHeight, Material i_oMat, Material i_oMatWalls) { aMap = i_aMap; fSquareSize = i_fSquareSize; fWallHeight = i_fWallHeight; fBumpHeight = i_fBumpHeight; oMat = i_oMat; oMatWalls = i_oMatWalls; squareGrid = new SquareGrid(aMap, fSquareSize, fSquareSize); squareGrid.Init(); Clear(); w = squareGrid.aSquares.GetLength(0); h = squareGrid.aSquares.GetLength(1); }