mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-07 18:05:16 -05:00
small updates
This commit is contained in:
@@ -401,21 +401,29 @@ public class AerialStateManager : NetworkBehaviour
|
||||
else{
|
||||
pStats.GravVel = pStats.JumpPow;
|
||||
}
|
||||
|
||||
//add check here for spring?
|
||||
if (curJumpNum == 0)
|
||||
|
||||
|
||||
if (pStats.JumpPow == 60)
|
||||
{
|
||||
jumpSound1.Play();
|
||||
}
|
||||
if (curJumpNum == 1)
|
||||
{
|
||||
jumpSound2.Play();
|
||||
}
|
||||
if (curJumpNum == 2)
|
||||
{
|
||||
jumpSound3.Play();
|
||||
//add check here for spring?
|
||||
if (curJumpNum == 0)
|
||||
{
|
||||
jumpSound1.Play();
|
||||
}
|
||||
if (curJumpNum == 1)
|
||||
{
|
||||
jumpSound2.Play();
|
||||
}
|
||||
if (curJumpNum == 2)
|
||||
{
|
||||
jumpSound3.Play();
|
||||
}
|
||||
}
|
||||
|
||||
if(pStats.JumpPow > 60)
|
||||
{
|
||||
springJumpSound.Play();
|
||||
}
|
||||
|
||||
|
||||
curJumpNum++;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -43,6 +43,8 @@ public class NitroStateManager : NetworkBehaviour
|
||||
public float nitroVelBoost = 40;
|
||||
public float nitroAccBoost = .4f;
|
||||
|
||||
public AudioSource boostSound;
|
||||
|
||||
void Awake(){
|
||||
|
||||
////Initialize Player Components
|
||||
|
||||
Reference in New Issue
Block a user