Anthony Lynn was like most people in town upon hearing the news. He was shocked, too, when Greg Roman cleaned out his office five days into the season. He never saw the firing coming, not even after two losses, and wasn’t quite sure how to respond when Rex Ryan handed him the offense.

“It blindsided me,” Lynn said Thursday after practice as the Bills prepared for Sunday’s game against the San Francisco 49ers.

For the first week, while trying to get his brain around what had gone wrong and how to proceed, he barely slept a wink. He worked into the wee hours, drove home for two-hour power naps and returned to One Bills Drive. For the first few days as offensive coordinator, he made a point to ignore the Arizona Cardinals.

It was a lesson he learned years ago from the late John Wooden, the legendary UCLA basketball coach with whom Lynn had lunch early in his coaching career. Wooden examined a scouting report Lynn had constructed about an upcoming opponent and told the young coach he was taking the wrong approach.

“All this is on the opponent?” Wooden asked Lynn. “I focus more on my team. If I can fix my team and focus on my team, I don’t worry about the other team.”