public static void Vibrate(UIFeedbackType type) { if (vibrator != null) { vibrator.Vibrate(type); } }
public void Vibrate(UIFeedbackType type) { switch (type) { case UIFeedbackType.ImpactLight: AndroidVibrationPlugin.Vibrate(30, 160); break; case UIFeedbackType.ImpactMedium: AndroidVibrationPlugin.Vibrate(30, 210); break; case UIFeedbackType.ImpactHeavy: AndroidVibrationPlugin.Vibrate(50, 255); break; } }
public static void Generate(UIFeedbackType type) { #if UNITY_IPHONE && !UNITY_EDITOR GenerateFeedback((int)type); #endif }
internal void Vibrate(UIFeedbackType vibrationType) { HapticFeedback.Vibrate(vibrationType); }
public void Vibrate(UIFeedbackType type) { GenerateFeedback((int)type); }