A MAN was shot to death while playing Pokemon Go at a tourist attraction along San Francisco’s waterfront.

Calvin Riley, 20, was shot Saturday night by an unknown assailant at Aquatic Park near Ghiradelli Square, the US Park Police said.

A family friend told KGO-TV Riley and a friend were playing the hit mobile game when he was shot.

“From what we know there was no confrontation. There was nothing said back and forth. It was just senseless, just came up and shot in the back and ran away for nothing,” John Kirby said.

Kirby said Riley and his friend had noticed someone watching them from the top of a hill that overlooks the park, but it was dark and they were mostly looking at their mobile phones.

A GoFundMe page has been set up to help Riley’s parents.

It states: “Due to this cruel world we live in, a part of my family was taken from us. When we got a call at 4.30am saying he’s gone I thought I was having a bad dream. We’ve had too many laughs, too many memories, too many moments that I will cherish for the rest of my life.”

“Calvin Riley you were my best friend. Nothing in the world will top the good times we’ve had together. You were more than a cousin/best friend to me, you were my brother …”

It’s unclear whether the attack had anything to do with “Pokemon Go,” which has become a national sensation this summer as legions of fans visit real-world landmarks in order to find and trap cartoon creatures.

But the game’s popularity has created unintended consequences in everyday life. Property owners complain of players trespassing or damaging their grounds and scores of players have been injured or robbed as they stare at their phones in search of digital monsters. Law enforcement officials have warned about the game’s possible dangers, saying players can become engrossed in the game and tune out to their surroundings.