Input System integration

This script demonstrates one way to add support for Unity's new Input System. It works by defining Input Actions directly within a component, but it can be adapted to work with an asset file instead.

To use it:
 * 1) Install Unity's Input System from the Package Manager - see Unity's own documentation for more on this
 * 2) Create a new C# file named InputSystemIntegration.cs and paste in the code below
 * 3) Add a new GameObject to the scene, and add the Input System Integration component to it
 * 4) Configure Input Actions in its Inspector as desired

If you are using Unity UI for menu rendering, you may also need to peform the following additional steps:


 * 1) Create a new Actions input asset that features all inputs you need for UI interaction.
 * 2) Create a new EventSystem in your scene, and attach the Input System UI Input Module component, assigning the Actions input asset made in step 1.
 * 3) Make this new EventSystem a prefab, remove it from the scene, and assign it in the Menu Manager's "Event system prefab" field.

InputSystemIntegration.cs: