mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 09:54:28 -05:00
kick issue has more or less been solved
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user