예제 #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
        }