Esempio n. 1
0
        public static void VibrateLight()
        {
#if UNITY_IOS
            if (TapticManager.IsSupport())
            {
                TapticManager.Impact(ImpactFeedback.Light);
            }
#endif
#if UNITY_EDITOR
            Debug.Log("Vibrate Light");
#endif
        }
        public static void VibrateHeavy()
        {
            if (VibrationEnabled)
            {
#if UNITY_IOS
                if (TapticManager.IsSupport())
                {
                    TapticManager.Impact(ImpactFeedback.Heavy);
                }
#endif
#if UNITY_EDITOR
                Debug.Log("Vibrate Heavy");
#endif
            }
        }
Esempio n. 3
0
        public static void VibrateGameOver()
        {
#if UNITY_IOS
            if (TapticManager.IsSupport())
            {
                TapticManager.Notification(NotificationFeedback.Warning);
            }
#endif
#if UNITY_ANDROID
            Handheld.Vibrate();
#endif
#if UNITY_EDITOR
            Debug.Log("Vibrate GameOver");
#endif
        }