public bool CheckCollision(Rectangle rectangle, bool fixBox = true) { rectangle = new Rectangle( (int)(rectangle.X + (rectangle.Width * 0.4) * 0.5), (int)(rectangle.Y + rectangle.Height * 0.5), (int)(rectangle.Width * 0.6), (int)(rectangle.Height * 0.5) ); return(_managerMap.CheckCollision(rectangle)); }
public bool CheckCollisionWithTiles(Rectangle rectangle, bool fixBox = true) { rectangle = new Rectangle((int)(rectangle.X + (rectangle.Width * 0.4) / 2), (int)(rectangle.Y + rectangle.Height * 0.5), (int)(rectangle.Width * 0.6), (int)(rectangle.Height * 0.5)); return(_managerMap.CheckCollision(rectangle, GetOwnerId())); }