mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-12 12:25:16 -05:00
small updates
This commit is contained in:
@@ -344,21 +344,10 @@ public class MoveStateManager : NetworkBehaviour
|
||||
driftVel = Vector3.Lerp(driftVel, moveXZ, pStats.CurTraction * Time.deltaTime);
|
||||
|
||||
|
||||
//True false set here to stop the audio from playing each time = to FPS
|
||||
if (hasPlayed == false)
|
||||
{
|
||||
hasPlayed = true;
|
||||
slideAudio.Play();
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
hasPlayed = false;
|
||||
}
|
||||
|
||||
//Actually move he player
|
||||
moveController.Move(driftVel);
|
||||
|
||||
slideAudio.Play();
|
||||
}
|
||||
|
||||
//Camera and player rotation
|
||||
|
||||
Reference in New Issue
Block a user