private void Awake() { if (m_instance == null) { m_instance = this; m_scanService = new ScanService(); m_schemeLookup = new Dictionary <string, ControlScheme>(); m_schemeLookupByID = new Dictionary <string, ControlScheme>(); m_actionLookup = new Dictionary <string, Dictionary <string, InputAction> >(); Initialize(); } else { Debug.LogWarning("You have multiple InputManager instances in the scene!", gameObject); Destroy(this); } }