I need some help converting this multidimensional array from Java
to c#
:
int[] tileMap = new int[][] {
{0, 1, 2, 3},
{3, 2, 1, 0},
{0, 0, 1, 1},
{2, 2, 3, 3}
};
I'm working on implementing this Stackoverflow answer on generating isometric worlds in Unity. I know both Java and c#
, but I lack the knowledge I need on c#
multidimensional array to do the conversion.
I tried my only guess at converting it:
int[,] tileMap = new int[]{
{0, 1, 2, 3},
{3, 2, 1, 0},
{0, 0, 1, 1},
{2, 2, 3, 3}
};
But I can tell that it's not right, and it throws errors.
Thanks in advance for any help!