private IInputDevice GetHandlerForCurrentDevice() { if (Application.isEditor) { return(EditorInputDeviceObject.GetInterface <IInputDevice>()); } else if (Application.isMobilePlatform) { return(MobileInputDeviceObject.GetInterface <IInputDevice>()); } else { return(FallbackInputDeviceObject.GetInterface <IInputDevice>()); } }