private void Awake() { grid = new int[xsize, ysize, zsize]; for (int x = 0; x < xsize; x++) { for (int y = 0; y < ysize; y++) { for (int z = 0; z < zsize; z++) { grid[x, y, z] = 0; } } } i = this; }
public void OnExportButtonClicked() { var levelInfosExport = new Level(_brickLevelArray); LevelExport.ToXml(levelInfosExport); }