added initial logic for the volume sliders
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user