public void Play(Vibe p) { if (!_HasVibrator()) { return; } mVibrating = true; CoroutineRunner.Start(PlayVibe(p)); }
public void Vibrate(Vibe v) { if (Global.gApp.gAudioSource.vibe == 0) { return; } mVibro.Play(v); }
private IEnumerator PlayVibe(Vibe p) { if (p.startDelayMs > 0L) { yield return(new WaitForSecondsRealtime(p.startDelayMs * 0.001f)); if (!mVibrating) { yield break; } } if (p.durationMs >= 500L) { _Vibrate(); } else if (p.durationMs >= 100L) { _VibratePop(); } else { _VibratePeek(); } }
public void Play(Vibe vibe) { VibrateOnce(vibe); }
private void Fallback(Vibe vibe) { Handheld.Vibrate(); }
private void BasicVibration(Vibe vibe) { OldVibrate(vibe); }
private void HapticVibration(Vibe vibe) { int amplitude = vibe.amplitude < 0 ? defaultAmplitude : vibe.amplitude; CreateVibrationEffect(vibrateOnceMethod, vibe.durationMs, amplitude); }
private void OldVibrate(Vibe v) { vibrator.Call(vibrateMethod, v.durationMs); }
public void Play(Vibe p) { //Debug.Log("Played single:" + p); }