ModularFirearmModeSwitcher MonoBehaviour
Overview
The ModularFirearmModeSwitcher behaviour is attached to modular firearms to handle mode switch commands by enabling specific firearm modules or components.
Since only one of each module type can be enabled on a firearm at any one time, when the mode switcher enables one, the previous is automatically disabled. This does not apply to components which are not firearm modules.
Inspector

Properties
| Name | Type | Description |
|---|---|---|
| On Switch Modes | UnityEvent | An event fired whenever the firearm mode is switched. |
The Add Mode button adds a new blank mode to the component. Each mode has the following properties:
| Name | Type | Description |
|---|---|---|
| Descriptive Name | String | The name displayed on the HUD for this mode. Leave this blank if you do not want the mode name displayed. |
| Components | Component Array | The components to enable for this mode (for firearm module components, this will disable the old component automatically). |