예제 #1
0
    // Remove animations
    private void Remove(System.Object obj, string name, ref ArrayList anims)
    {
        ArrayList remove = new ArrayList();

        foreach (System.Object[] anim in anims)
        {
            AniValue val = (anim[0] as AniValue);
            if ((name == null && val.Is(obj)) ||
                (name != null && val.Is(obj, name)))
            {
                remove.Add(anim);
            }
        }
        foreach (System.Object[] anim in remove)
        {
            animations.Remove(anim);
        }
    }