added initial logic for the volume sliders

This commit is contained in:
Timur Nizamov
2025-12-02 22:40:17 +02:00
parent 0b4854373b
commit f414e10d94
43 changed files with 365 additions and 422 deletions

View File

@@ -110,8 +110,8 @@ public class CarDrivingRoutine : NetworkBehaviour
{;
if (other.GetComponentInParent<XRPlayerMirror>() == null) return;
StartCoroutine(SmoothAdjustSpeed(0, 0, haltspeed)); // Smoothly halt in 1 second
_tireSound.Stop();
_stopSound.Play();
//_tireSound.Stop();
//_stopSound.Play();
AudioController.SetRPM(475);
AudioController.PlayStopSound();
@@ -122,8 +122,8 @@ public class CarDrivingRoutine : NetworkBehaviour
{
if (other.GetComponentInParent<XRPlayerMirror>() == null) return;
StartCoroutine(SmoothAdjustSpeed(targetSpeed, targetRotationSpeed, haltspeed)); // Smoothly resume speed in 1 second
_stopSound.Stop();
_tireSound.Play();
//_stopSound.Stop();
//_tireSound.Play();
AudioController.SetRPM(1450);