Willy Hernangomez is taking the line from “The Dark Knight” — “You either die a hero or live long enough to see yourself become the villain” — to heart. The one-time fan favorite may become a sworn Garden enemy with comments like these.

“Now my job,” he said of close friend Kristaps Porzingis, “is to maybe get him here for the Hornets.”

Of course, the former Knick was kidding. He laughed as soon as the words came out of his mouth. He repeatedly said he hopes for the best for the Knicks, the organization that gave him his first shot. The 6-foot-11 Spaniard doesn’t hold a grudge.

If anything, he appreciates the Knicks giving him a fresh start by trading him to the Hornets last year when it became clear his future wasn’t with them.

“I think we made the right choice,” he said before playing just four minutes in the Hornets’ 119-107 win over the Knicks on Sunday night. “Being new in Charlotte, I think my future is going to be bright here for the Hornets.”

That’s not to say he doesn’t miss New York. He loves coming back, especially to see Porzingis. The two have remained close, talking on the phone a few times per week. Hernangomez isn’t sure when Porzingis, his former teammate with the Knicks and Baloncesto Sevilla in Spain’s Liga ACB, will return to the court after tearing his ACL last February, but he said his friend is in good spirits.

“I think KP is doing right now the best thing he can do, being patient. His friends and the people who really love him, we try to give him the best advice,” the 24-year-old Hernangomez said. “It makes no sense to rush his recovery and try to force playing. I think once he feels safe or he feels strong, he feels like he’s back then he will be back. I’m sure he will be better than ever. He’s very anxious to play. He really wants to play bad. But he’s got to be smart, take his time, and once he feels good, he will be a beast again.”

Allonzo Trier was unavailable after suffering a strained left hamstring during warm-ups. The undrafted rookie guard out of Arizona is averaging 11.3 points per game this season. …Guard Ron Baker was active and scored five points in nine minutes. … Starting forward Mario Hezonja didn’t score and played only 4:49.