removed debug logs and added some

This commit is contained in:
Melbyj1125
2022-03-30 12:31:38 -05:00
parent 7408467597
commit 432cb0c028
11 changed files with 19 additions and 17 deletions

View File

@@ -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);
}