예제 #1
0
 private HexData GetHexDataByHex(HexCoordinates hex)
 {
     HexMetrics.AxialToOffset(hex.X, hex.Z, out int row, out int col);
     _grid.Data.RowColToIndex(row, col, out int rowIndex, out int colIndex);
     return(_grid.Data[rowIndex, colIndex]);
 }