IEnumerator LiftLeg(object token, int direction)
{
var str = MainGuys[PlayerId].TotalAttachedGuys.Count / 10.0f + 1.0f;
StartCoroutine(PlayStep());
float t = 0;
while (activeCoroutine == token && t < 0.125)
{
(direction == 1 ? RightLegRB : LeftLegRB).AddTorque(0, 0, 100 * direction * movementForce * str);
(direction == 1 ? RightLegRB : LeftLegRB).AddForce(0, 15 * movementForce * str, 0);
yield return new WaitForFixedUpdate();
t += Time.fixedDeltaTime;
}
if (activeCoroutine == token)
yield return StartCoroutine(HoldUpAndMove(token, direction));
}