C# How to have a gun select

Just wanted to know how i can have a gun select spawn the correct gun when i pick it in my loadout. what i have so far is:

if (GUILayout.Button ("Change Guns"))
		{
		if (GUILayout.Button ("Pistol"))
			{
			if (GUILayout.Button ("Test Pistol"))
				{
					
				}
			}
		if (GUILayout.Button ("LMG"))
			{
				
			}
		if (GUILayout.Button ("Assault Rifle"))
			{
				
			}
		}

A simple way is to have all weapons childed to an empty object which in turn is childed to the camera, and deactivate all of them but the one currently selected - deactivated objects aren’t rendered, neither their scripts are functional, thus you effectively has only one weapon on your hands at any time. Take a look at this answer, which is based on the good FPS Tutorial.