Hello all,
im trying to populate a 2d array from code.
I want to fill the first row and when this row is full i want to fill the next row. Filling the first row works fine but on filling the next row it skips (overrides) the first element. What am i doing wrong or more precisely how would i do it correct?
if(moveCounterX < columnsCounter) {
array[moveCounterX, moveCounterY, 0] = tmp;
moveCounterX++;
}else {
moveCounterX = 0;
moveCounterY++;
array[moveCounterX, moveCounterY, 0] = tmp;
}
Thank you in advance