Un Action Map agrupa Input Actions que pertenecen al mismo contexto.
Ejemplo:
Player
├── Move
├── Jump
├── Attack
└── Interact
UI
├── Navigate
├── Submit
├── Cancel
└── Click
Permite activar un conjunto de controles y desactivar otro.
Ejemplo:
Durante gameplay:
Player = activo
UI = inactivo
Al abrir un menú:
Player = inactivo
UI = activo
Cambiar de mapa:
playerInput.SwitchCurrentActionMap("UI");
Volver:
playerInput.SwitchCurrentActionMap("Player");
Evita tener que escribir condiciones como:
if (!menuAbierto)
{
// mover jugador
}