public static void UnregisterMap(InputMap inputMap) { if (maps.Contains(inputMap)) { maps.Remove(inputMap); inputMap.Trigger -= Relay; } }
public static void RegisterMap(InputMap inputMap) { if (!maps.Contains(inputMap)) { maps.Add(inputMap); inputMap.Trigger += Relay; } }