I think you may of made a mistake here:
Shouldn't they be 0 and and 1?PHP Code:short X = Around[i, 1];
short Y = Around[i, 2];
It also might have trouble if you try to path via the lowest/highest X/Y due to IndexOutOfRangeExceptions.
Just something you might want to check :)
Edit: Also, Around.Length will return the length including both dimensions. Use Around.GetLength(0) instead.












