ProcessAnimation() static private method

Converts an intermediate format content pipeline AnimationContent object to our runtime AnimationClip format.
static private ProcessAnimation ( AnimationContent animation, int>.Dictionary boneMap ) : AnimationClip
animation AnimationContent
boneMap int>.Dictionary
return AnimationClip
        private static Dictionary <string, AnimationClip> ProcessAnimations(AnimationContentDictionary animations, IList <BoneContent> bones)
        {
            bool count;
            Dictionary <string, int> strs = new Dictionary <string, int>();
            int num = 0;

            while (true)
            {
                count = num < bones.Count;
                if (!count)
                {
                    break;
                }
                string name = bones[num].Name;
                count = string.IsNullOrEmpty(name);
                if (!count)
                {
                    strs.Add(name, num);
                }
                num++;
            }
            Dictionary <string, AnimationClip> strs1 = new Dictionary <string, AnimationClip>();
            IEnumerator <KeyValuePair <string, AnimationContent> > enumerator = animations.GetEnumerator();

            try {
                while (true)
                {
                    count = enumerator.MoveNext();
                    if (!count)
                    {
                        break;
                    }
                    KeyValuePair <string, AnimationContent> current = enumerator.Current;
                    AnimationClip animationClip = SkinnedModelProcessor.ProcessAnimation(current.Value, strs);
                    strs1.Add(current.Key, animationClip);
                }
            } finally {
                count = enumerator == null;
                if (!count)
                {
                    enumerator.Dispose();
                }
            }
            count = strs1.Count != 0;
            if (count)
            {
                Dictionary <string, AnimationClip> strs2 = strs1;
                return(strs2);
            }
            else
            {
                throw new InvalidContentException("Input file does not contain any animations.");
            }
        }