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 } }