Are you referring to the game "Twin Mirror"? If so, it's an adventure game developed by Dontnod Entertainment. You play as Sam Higgs, a former investigative journalist who returns to his hometown to uncover the truth behind a friend's mysterious death. The game involves exploring the town, interacting with characters, and solving puzzles using Sam's unique mind palace ability.
If you're thinking of a different game, let me know!