public static IEnumerator relax(SimpleLeg legOne, SimpleLeg legTwo) { legOne.relaxFoot(); legOne.relaxThigh(); legTwo.relaxFoot(); legTwo.relaxThigh(); yield return new WaitForFixedUpdate(); }
public static IEnumerator jump(SimpleLeg legOne, SimpleLeg legTwo) { Debug.Log("jump"); legOne.jump(); legTwo.jump(); while(!(legOne.isFullyLowered() || legTwo.isFullyLowered())) { yield return new WaitForFixedUpdate(); } legOne.relaxThigh(); legTwo.relaxThigh(); yield return new WaitForSeconds(0.5f); }