/// <summary> /// Stops all running pattern or continuous haptics /// </summary> public static void StopContinuousHaptic(bool alsoRumble = false) { DebugLog("[MMVibrationManager] Stop Continuous Haptic"); MMNViOSCoreHaptics.StopHapticPatterns(); MMNVAndroid.AndroidCancelVibrations(); #if MOREMOUNTAINS_NICEVIBRATIONS_RUMBLE if (alsoRumble) { MMNVRumble.StopRumble(); } #endif }
/// <summary> /// Stops all currently running haptics /// </summary> /// <param name="alsoRumble"></param> public static void StopAllHaptics(bool alsoRumble = false) { if (!_hapticsPlayedOnce) { return; } DebugLog("[MMVibrationManager] Stop all haptics"); MMNViOSCoreHaptics.StopEngine(); MMNVAndroid.AndroidCancelVibrations(); #if MOREMOUNTAINS_NICEVIBRATIONS_RUMBLE if (alsoRumble) { MMNVRumble.StopRumble(); } #endif }