Bounds2D.isHorizontalOverlap C# (CSharp) Method

isHorizontalOverlap() public method

public isHorizontalOverlap ( Bounds2D, other ) : bool
other Bounds2D,
return bool
    public bool isHorizontalOverlap(Bounds2D other)
    {
        return !(x > other.x + other.width || other.x > x + width);
    }