private void SetInputDevice(InputDevice inpuDevice) { _inputDevice = inpuDevice; if (inpuDevice == InputDevice.Joystick) { Cursor.visible = false; InputManager.SetConfiguration(_joystickConfiguration); #if UNITY_EDITOR Debug.Log("Current Input Device: Joystick"); #endif } else { Cursor.visible = true; InputManager.SetConfiguration(_keyboardConfiguration); #if UNITY_EDITOR Debug.Log("Current Input Device: KeyboardAndMouse"); #endif } InputManager.ResetInputAxes(); RaiseInputDeviceChangedEvent(); }