System.Collections.Generic.List.Add(tk2dSpriteAnimation)

Here are the examples of the csharp api System.Collections.Generic.List.Add(tk2dSpriteAnimation) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : Dump.cs
License : GNU General Public License v3.0
Project Creator : magegihk

private List<tk2dSpriteAnimation> GetUsedIns(tk2dSpriteCollectionData cln, List<tk2dSpriteAnimation> anims)
        {
            List<tk2dSpriteAnimation> used = new List<tk2dSpriteAnimation>();
            foreach (tk2dSpriteAnimation anim in anims)
            {
                foreach (tk2dSpriteAnimationClip clip in anim.clips)
                {
                    foreach (tk2dSpriteAnimationFrame frame in clip.frames)
                    {
                        if (frame.spriteCollection.name == cln.name && !used.Contains(anim))
                        {
                            used.Add(anim);
                        }
                    }
                }
            }
            return used;
        }