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