When you switch targets the custom platform define symbols get cleared out so that's what is causing the issue. I'll have this fixed in the next update that is being released shortly but if you move PunCharacter.GetItemAction above the #ULTIMATE_CHARACTER_CONTROLLER_SHOOTER define then it'll work.