Olá!
Estou tentando checar se qualquer (any) Objeto Rectangle dentro da lista HeightMap, colide com (IntersectsWith) com o jogador:
foreach (Rectangle rec in HeightMap)
{
bool intersects = HeightMap.Any(rec.IntersectsWith(PlayerRectangle));
if(intersects) Console.Write("Algum retângulo da lista HeightMap está colidindo com o jogador!");
}
O problema é que recebo o seguinte erro:
P.S: RESUMIDO
Se alguém puder me ajduar, ficarei muito grato.