コード例 #1
0
 /// <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
 }
コード例 #2
0
        /// <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
        }