Beispiel #1
0
 public static Vector2Int axial_neighbor(Vector2Int currentAxial, HexCellDirection direction)
 {
     return(currentAxial + axial_dir[(int)direction]);
 }
Beispiel #2
0
    public static Vector2Int oddr_neighbor(Vector2Int point, HexCellDirection direction)
    {
        int parity = point.y & 1;

        return(oddr_dir[parity][(int)direction] + point);
    }
Beispiel #3
0
 public static Vector3Int cube_neighbor(Vector3Int currentCube, HexCellDirection direction)
 {
     return(currentCube + cube_dir[(int)direction]);
 }