public bool Collision(SymbolicEntity entity) { foreach (var wall in walls) { if (wall.Collision(entity)) { return(true); } } return(false); }
internal bool Collision(SymbolicEntity entity) { foreach (Point p in points) { if (entity.Collision(p)) { return(true); } } return(false); }