private static int[][] getFillIndices(dfFillDirection fillDirection, int baseIndex) { int[][] numArray = (fillDirection != dfFillDirection.Horizontal) ? vertFill : horzFill; for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { fillIndices[i][j] = baseIndex + numArray[i][j]; } } return(fillIndices); }
private static int[][] getFillIndices(dfFillDirection fillDirection, int baseIndex) { var baseIndices = (fillDirection == dfFillDirection.Horizontal) ? horzFill : vertFill; for (int x = 0; x < 4; x++) { for (int y = 0; y < 4; y++) { fillIndices[x][y] = baseIndex + baseIndices[x][y]; } } return(fillIndices); }
private static int[][] getFillIndices( dfFillDirection fillDirection, int baseIndex ) { var baseIndices = ( fillDirection == dfFillDirection.Horizontal ) ? horzFill : vertFill; for( int x = 0; x < 4; x++ ) { for( int y = 0; y < 4; y++ ) { fillIndices[ x ][ y ] = baseIndex + baseIndices[ x ][ y ]; } } return fillIndices; }
private static int[][] getFillIndices(dfFillDirection fillDirection, int baseIndex) { int[][] numArray = (fillDirection != dfFillDirection.Horizontal ? dfSlicedSprite.vertFill : dfSlicedSprite.horzFill); for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { dfSlicedSprite.fillIndices[i][j] = baseIndex + numArray[i][j]; } } return dfSlicedSprite.fillIndices; }