Example #1
0
    public static bool IsFloor(Vector2Int tile, Row r, LOSData l)
    {
        if (tile.x == -1 && tile.y == -1)
        {
            return(false);
        }

        return(!l.getAt(tile.y, tile.x, r.quad.dir));
    }
Example #2
0
    public static bool IsWall(Vector2Int tile, Row r, LOSData l)
    {
        if (tile.x == -1 && tile.y == -1)
        {
            //Special case for starting tile
            return(false);
        }

        return(l.getAt(tile.y, tile.x, r.quad.dir));
    }