Пример #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
        }
Пример #2
0
        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
            }
        }
Пример #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
        }