You can change the hats (hair style) with weapons in Unity.
By using the attached image it will be.
Be replace the images contained in this items (bones) below.
- Weapon: arm_weapon
- Hats & hair: face_hair
If you want to use this asset, you should download the appropriate Spine runtimes.
The runtimes can be downloaded from EsotericSoftware's Github.