private void Awake() { if (_instance != null) { Destroy (this); } else { SetInputManagerConfigurations (); SetInputDevice (InputDevice.KeyboardAndMouse); _instance = this; _joystickCount = InputManager.GetJoystickNames ().Length; if (dontDestroyOnLoad) { DontDestroyOnLoad (gameObject); } } }