private static SubKnockdownOptions UpgradeKnockdownOptions(SubKnockdownOptions knockDown) { knockDown._knockedOutTime = knockDown.knockedOutTime; knockDown._standUpTime = knockDown.standUpTime; knockDown._predefinedPushForce = FPVector.ToFPVector(knockDown.predefinedPushForce); return(knockDown); }
private float AdjustKnockdownVariables(SubKnockdownOptions knockdownOptions) { myPhysicsScript.ResetForces(true, true); myPhysicsScript.AddForce(knockdownOptions.predefinedPushForce, -opControlsScript.mirror); currentState = PossibleStates.Down; return knockdownOptions.standUpTime + knockdownOptions.knockedOutTime; }