The New York Islanders are slowly rediscovering their disciplined style and beginning to play the way they did when they made it to the second round of playoffs last season.

Brock Nelson scored in the shootout and the Islanders beat the Florida Panthers 3-2 Saturday night at Nassau Coliseum to snap a two-game skid.

Anders Lee and Josh Bailey scored in regulation for the Islanders.

“We didn’t focus on the outcome, we just focused on the process and how we have to get back to playing our way,” Islanders coach Barry Trotz said. “We didn’t have any passengers, it was a team win.”

Semyon Varlamov, signed to a four-year, $20 million deal in the offseason, stopped 35 shots through overtime and all three Florida attempts in the tiebreaker to pick up his first win with New York.

“A win tastes great,” Varlamov said. “After two losses, we needed this win and I thought everybody played well.”

Evgenii Dadonov had a goal and an assist, Denis Malgin also scored, and Sam Montembeault stopped 26 shots through overtime in his firs start of the season for Florida. The Panthers lost in a shootout for the second straight game to fall to 1-2-2 through five games.

Dadonov tied the score at 2-2 when his wrist shot beat Varlamov with 6:02 left in the third period. Jonathan Huberdeau entered the offensive zone with possession of the puck and crisscrossed with Dadonov to throw off the Islanders’ defense.

“We got to learn to play the way we played in the third period, how we battled back, that needs to be our 60-minute game,” Panthers captain Aleksander Barkov said.

Florida opened the scoring at 5:34 of the first period when Malgin hammered a one-timer off a pass from Dadonov for his first of the season.

Lee tied it when he recorded his second goal of the season at 5:40 of the second. Lee sent a slap shot from the high slot after Mathew Barzal masterfully manipulated the Panthers’ defense behind the net and found an opening to deliver a pass to the Islanders’ captain.

“I know (Barzal) sees me and he knows I am in the slot,” Lee said when describing his thought process. “I have to find a lane for him as well, I can’t just stand there. I have to be patient and be ready to shoot when it gets to me.”

Bailey gave the Islanders a 2-1 lead with 2:29 left in the middle period when he finished a cross-ice pass from Jordan Eberle, firing a wrist shot past Montembeault’s glove.

Late in the third period, Eberle absorbed a hard check from Mike Matheson and did not return. Trotz did not offer an update after the game.

The Panthers outshot the Islanders 12-9 in the first 20 minutes but failed to capitalize on the power play, squandering three opportunities.

“In the second period, we got a little cute, started to make stupid plays,” Barkov said. “It cost us a couple of goals.”