Exemple #1
0
 public void Vibrate(Vibe v)
 {
     vibro.Play(v);
 }
 public void Play(Vibe p) => MonoBehaviour.print("Played single:" + p);
 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)
 {
     CreateVibrationEffect(vibrateOnceMethod, vibe.GetDuration(), vibe.GetAmplitude() ?? defaultAmplitude);
 }
 private void OldVibrate(Vibe v)
 {
     vibrator.Call(vibrateMethod, v.GetDuration());
 }