To unlock the Gunslinger, you need to complete the first two Worlds of your Campaign and defeat the World Boss. After that, speak with Mudtooth back at Ward 13 and obtain the Worn Cylinder, then find Wallace to receive the Gunslinger Archetype for permanent use.