예제 #1
0
    public Field GetDiagonalNeighbour(Field field, HexUtils.HexDiagonal dig)
    {
        Vector2 tmp = HexUtils.CubeToOffset(HexUtils.GetValueFromHexDiagonal(dig));

        return(GetField(field.x + (int)tmp.x, field.y + (int)tmp.y));
    }