kick issue has more or less been solved

This commit is contained in:
Melbyj1125
2022-03-30 11:40:51 -05:00
parent 9f1f53f74e
commit 2980aa8858
3 changed files with 17 additions and 34 deletions

View File

@@ -172,7 +172,6 @@ public class MoveStateManager : NetworkBehaviour
}
public void SwitchState(MoveBaseState state){
currentState.ExitState(this, state);
//Sets the previous State
@@ -314,9 +313,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);
}