As the prison warden in the movie “Cool Hand Luke” once said, “What we have here is a failure to communicate.” But in this case, that applied to the understanding Nets coach Lionel Hollins and his players had about what was supposed to happen in the final seconds of a 104-98 loss to Miami and the brilliant Dwyane Wade Wednesday night at Barclays Center.

The Nets had no defense for Wade, who scored 28 points and shot 13-for-17, including 10 points in the final period. And they had no defense for their failure to foul when they trailed by five points and allowed the Heat to run about 25 seconds off the clock before a missed shot gave Brooklyn the ball with 11.7 seconds remaining.

Miami gained a 103-98 lead when Wade hit a runner down the left side of the lane with 43.5 seconds left. The Heat got the ball back after Thaddeus Young missed under the basket with 36.9 seconds to go. As Wade slowly dribbled upcourt, the Nets retreated. Bojan Bogdanovic looked toward Hollins three times as if expecting a signal to foul, but Hollins just stared until Goran Dragic missed a three-pointer and the Nets got the rebound and called timeout with 11.7 seconds left.

Asked about his “decision” not to foul, Hollins took issue with that characterization. “It wasn’t the decision,” Hollins insisted. “I told them that we needed a foul. I mean, c’mon. You got to foul. I got caught looking at something else, and when I looked over, everybody was looking at me. But that kind of stuff happens.”

Several players were asked if Hollins said anything about fouling at that point, and no one could recall hearing that instruction. “I didn’t,” point guard Jarrett Jack said. “Whatever message was trying to get sent to us, we’ve got to receive it better and send it better . . . on both sides. Then, as players, I think we should do a little better job of knowing time and score and understanding the situation.”

There’s no guarantee fouling would have altered the outcome, but it certainly would have created more possession time for the Nets. They had cut an 11-point third-quarter deficit to 87-85 midway in the fourth. Then Wade returned to the game to score six points in a 10-2 burst that pushed it to 97-87.

advertisement | advertise on newsday

Asked what more the Nets might have done to contain Wade, Hollins said, “You could go double him and hopefully he passes it, but even when we did that, [Justise] Winslow hit a three and Dragic hit a three. That puts a little bit of caution in trying to go double-team him and taking the ball out [of his hands]. He’s a great player.”

Wade was supported by center Hassan Whiteside with 20 points and 13 rebounds and Dragic with 16 points. It was the third straight loss for the Nets, who were led by Brook Lopez with 25 points and got a 22-point, 10-assist performance by Jack. But Lopez got only two shots and three points in the final period when Heat coach Erik Spoelstra double-teamed him and forced the Nets to find alternate offense.

Maybe it was just Wade’s night no matter what the Nets did. Wade said he got it going with a three at the end of the shot clock early on. As Spoelstra said of Wade’s display, “He had an array [of shots]. He had the full pie chart going tonight.”