updated networked grapple

This commit is contained in:
Melbyj1125
2022-04-25 15:24:35 -05:00
parent e072f3e181
commit 16a02b2332
6 changed files with 6 additions and 12 deletions

View File

@@ -144,12 +144,6 @@ public class MoveStateManager : NetworkBehaviour
//calculates vel using driftVel will need to be relocated
calculatedCurVel = driftVel.magnitude * 50f;
//if grappling in aerial state manager swap to grapple here
if(currentState != GrappleAirState){
if(aSM.currentState == aSM.GrappleAirState && (currentState != SlideState && currentState != CrouchState && currentState != CrouchWalkState && currentState != RagdollState && currentState != RecoveringState)){
SwitchState(GrappleAirState);
}
}
//calls any logic in the update state from current state
currentState.UpdateState(this);