small updates

This commit is contained in:
Kazinski
2022-05-01 19:06:51 -05:00
parent 5d21bdca7e
commit 2541df2f90
7 changed files with 109 additions and 38 deletions

View File

@@ -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