public bool CheckOverlap(int coordX, int coordY) { // Im using whole pixels, instead of the outline rectangles // So widths and heights should be represented as 1 less. return(GridUtilities.RectOverlap(coordX, coordY, 0, 0, _coordX, _coordY, _width - 1, _height - 1)); }
public bool CheckOverlap(int coordX, int coordY, int width, int height, GridLayers layerMask) { return(GridUtilities.Overlap(_map, coordX, coordY, width, height, (short)layerMask)); }