private IEnumerator anglesUpdater() { while (animState != AnimState.UNANIMATED) { float[] updated = updateOrientations.getAngles(); animator.operate(updated); yield return(null); } }
IEnumerator setupAngles() { while (orientAngles.Count() > 0) { yield return(null); float[] angles = orientAngles.getAngles(); Buffer.BlockCopy(angles, 0, upper, 0, 20 * sizeof(float)); Buffer.BlockCopy(angles, 20 * sizeof(float), lower, 0, 20 * sizeof(float)); animateUpper(upper); animateLower(lower); } }