A man was playing Pokemon Go which police believe led him to an Anaheim park where he was stabbed in a violent attack, Anaheim police said Wednesday.

He was playing the popular augmented reality app where users capture fictional creatures, which likely led him into Schweitzer Park, around 12 a.m., police said.

A group of five to six men in their late teens or early 20s got into some type of altercation with the man, police said.

He was stabbed several times in the upper torso.

Police want to be clear: They do not believe the attackers lured the victim into the park, but they do believe the victim was playing the game and was distracted.

"This is still very fresh and very new -- but what we are encouraging is if you are going to play to do it safely, and not lose sight of what you're doing," Anaheim police Sgt. Luis Correa said. "Be aware of your surroundings. Do it in a manner that's safe so you don't get into trouble."

The Pokemon Go game was being criticized for its potential dangers, but also in Orange County Wednesday, two Marines playing the game helped police nab an attempted murder suspect.

The victim is expected to survive.