mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 18:04:27 -05:00
removed debug logs and added some
This commit is contained in:
@@ -16,11 +16,14 @@ public class AerialFallingState : AerialBaseState
|
||||
|
||||
//if Grav Vel > 0 then jumping
|
||||
if(aSM.pStats.GravVel > 0 && (aSM.mSM.currentState != aSM.mSM.SlideState && aSM.mSM.currentState != aSM.mSM.CrouchState && aSM.mSM.currentState != aSM.mSM.RagdollState && aSM.mSM.currentState != aSM.mSM.RecoveringState)){
|
||||
Debug.Log("Going to Jump From Fall");
|
||||
aSM.SwitchState(aSM.JumpingState);
|
||||
|
||||
}
|
||||
|
||||
//if jump has been pressed and has glider and is in a state that allows it glide
|
||||
else if(Input.GetButton("Jump") && aSM.pStats.HasGlider && (aSM.mSM.currentState != aSM.mSM.SlideState && aSM.mSM.currentState != aSM.mSM.CrouchState && aSM.mSM.currentState != aSM.mSM.RagdollState && aSM.mSM.currentState != aSM.mSM.RecoveringState) && !aSM.pStats.IsPaused){
|
||||
Debug.Log("Going to Glide From Fall");
|
||||
aSM.SwitchState(aSM.GlidingState);
|
||||
}
|
||||
|
||||
|
||||
@@ -210,7 +210,8 @@ public class AerialStateManager : NetworkBehaviour
|
||||
}
|
||||
|
||||
public void SwitchState(AerialBaseState state){
|
||||
|
||||
if (!IsLocalPlayer) { return; }
|
||||
|
||||
currentState.ExitState(this, state);
|
||||
|
||||
//Sets the previous State
|
||||
@@ -304,7 +305,7 @@ public class AerialStateManager : NetworkBehaviour
|
||||
curJumpNum = 0;
|
||||
}
|
||||
else{
|
||||
pStats.GravVel = pStats.JumpPow;
|
||||
pStats.GravVel = pStats.JumpPow;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ public class DashStateManager : NetworkBehaviour
|
||||
}
|
||||
|
||||
public void SwitchState(DashBaseState state){
|
||||
|
||||
if (!IsLocalPlayer) { return; }
|
||||
currentState.ExitState(this, state);
|
||||
|
||||
//Sets the previous State
|
||||
|
||||
@@ -172,6 +172,7 @@ public class MoveStateManager : NetworkBehaviour
|
||||
}
|
||||
|
||||
public void SwitchState(MoveBaseState state){
|
||||
if (!IsLocalPlayer) { return; }
|
||||
currentState.ExitState(this, state);
|
||||
|
||||
//Sets the previous State
|
||||
@@ -313,9 +314,9 @@ public class MoveStateManager : NetworkBehaviour
|
||||
|
||||
//Get hit into a ragdoll
|
||||
public void GetHit(Vector3 dir, float force){
|
||||
if (!IsLocalPlayer) { return; }
|
||||
dir.Normalize();
|
||||
dirHit = dir * force;
|
||||
if (!IsLocalPlayer) { return; }
|
||||
SwitchState(RagdollState);
|
||||
}
|
||||
|
||||
|
||||
@@ -6,12 +6,12 @@ public class MoveIdleState : MoveBaseState
|
||||
{
|
||||
public override void EnterState(MoveStateManager mSM, MoveBaseState previousState){
|
||||
mSM.GetComponent<Animator>().SetBool("isIdle", true);
|
||||
Debug.Log("Entered Idle");
|
||||
//Debug.Log("Entered Idle");
|
||||
}
|
||||
|
||||
public override void ExitState(MoveStateManager mSM, MoveBaseState nextState){
|
||||
mSM.GetComponent<Animator>().SetBool("isIdle", false);
|
||||
Debug.Log("Exited Idle");
|
||||
//Debug.Log("Exited Idle");
|
||||
}
|
||||
|
||||
public override void UpdateState(MoveStateManager mSM){
|
||||
|
||||
@@ -6,12 +6,12 @@ public class MoveJogState : MoveBaseState
|
||||
{
|
||||
public override void EnterState(MoveStateManager mSM, MoveBaseState previousState){
|
||||
mSM.GetComponent<Animator>().SetBool("isJogging", true);
|
||||
Debug.Log("Entered Jog");
|
||||
//Debug.Log("Entered Jog");
|
||||
}
|
||||
|
||||
public override void ExitState(MoveStateManager mSM, MoveBaseState nextState){
|
||||
mSM.GetComponent<Animator>().SetBool("isJogging", false);
|
||||
Debug.Log("Exited Jog");
|
||||
//Debug.Log("Exited Jog");
|
||||
}
|
||||
|
||||
public override void UpdateState(MoveStateManager mSM){
|
||||
|
||||
@@ -6,12 +6,12 @@ public class MoveRunState : MoveBaseState
|
||||
{
|
||||
public override void EnterState(MoveStateManager mSM, MoveBaseState previousState){
|
||||
mSM.GetComponent<Animator>().SetBool("isRunning", true);
|
||||
Debug.Log("Entered Run");
|
||||
//Debug.Log("Entered Run");
|
||||
}
|
||||
|
||||
public override void ExitState(MoveStateManager mSM, MoveBaseState nextState){
|
||||
mSM.GetComponent<Animator>().SetBool("isRunning", false);
|
||||
Debug.Log("Exit Run");
|
||||
//Debug.Log("Exit Run");
|
||||
}
|
||||
|
||||
public override void UpdateState(MoveStateManager mSM){
|
||||
|
||||
@@ -6,12 +6,12 @@ public class MoveWalkState : MoveBaseState
|
||||
{
|
||||
public override void EnterState(MoveStateManager mSM, MoveBaseState previousState){
|
||||
mSM.GetComponent<Animator>().SetBool("isWalking", true);
|
||||
Debug.Log("Entered Walk");
|
||||
//Debug.Log("Entered Walk");
|
||||
}
|
||||
|
||||
public override void ExitState(MoveStateManager mSM, MoveBaseState nextState){
|
||||
mSM.GetComponent<Animator>().SetBool("isWalking", false);
|
||||
Debug.Log("Exited Walk");
|
||||
//Debug.Log("Exited Walk");
|
||||
}
|
||||
|
||||
public override void UpdateState(MoveStateManager mSM){
|
||||
|
||||
@@ -92,7 +92,7 @@ public class NitroStateManager : NetworkBehaviour
|
||||
}
|
||||
|
||||
public void SwitchState(NitroBaseState state){
|
||||
|
||||
if (!IsLocalPlayer) { return; }
|
||||
currentState.ExitState(this, state);
|
||||
|
||||
//Sets the previous State
|
||||
|
||||
@@ -48,9 +48,6 @@ public class OffenseKickState : OffenseBaseState
|
||||
else{
|
||||
legRotation = -90;
|
||||
}
|
||||
|
||||
//jitter player upwards because of a weird issue with collider
|
||||
oSM.moveController.Move(new Vector3(0,.002f,0));
|
||||
}
|
||||
|
||||
//kicking timer
|
||||
|
||||
@@ -101,7 +101,7 @@ public class OffenseStateManager : NetworkBehaviour
|
||||
}
|
||||
|
||||
public void SwitchState(OffenseBaseState state){
|
||||
|
||||
if (!IsLocalPlayer) { return; }
|
||||
currentState.ExitState(this, state);
|
||||
|
||||
//Sets the previous State
|
||||
|
||||
Reference in New Issue
Block a user