9 [Tooltip(
"The global intensity for all haptic events.")]
12 [Tooltip(
"Activate Debug Mode for Intensity Controller and for the HapticManager")]
16 private bool stopHapticsOnFocusLoss =
true;
17 private double intensityBeforeMute;
26 HapticManager.DebugSwitch =
true;
28 if (!stopHapticsOnFocusLoss)
30 DebugMode(
"Haptics will not stop on focus loss");
31 HapticManager.StopHapticsOnFocusLoss = stopHapticsOnFocusLoss;
54 HapticManager.DebugSwitch =
true;
61 if (Input.GetKeyDown(KeyCode.R))
65 if (Input.GetKeyDown(KeyCode.Y))
76 Debug.Log(debugMessage);
86 DebugMode($
"Global haptic intensity set to: {globalIntensity}");
93 DebugMode($
"Global haptic intensity set to: {globalIntensity}");
99 return HAR.GetGlobalIntensity();
112 DebugMode($
"Current global haptic intensity is: {currentIntensity}");