public virtual void AddChild(SpritePositionedObject child, bool activeDependent, bool directConnection)
        {
            Children.Add(child);
            Children[Children.Count - 1].ActiveDependent  = activeDependent;
            Children[Children.Count - 1].DirectConnection = directConnection;
            //Children[Children.Count - 1].Movable = true;

            m_Parent = true;
        }
Esempio n. 2
0
        public override void AddChild(SpritePositionedObject child, bool activeDependent, bool directConnection)
        {
            base.AddChild(child, activeDependent, directConnection);

            if (child is Sprite)
            {
                SpriteChildren.Add(child);
                SpriteChildren[SpriteChildren.Count - 1].ActiveDependent  = activeDependent;
                SpriteChildren[SpriteChildren.Count - 1].DirectConnection = directConnection;
                SpriteChildren[SpriteChildren.Count - 1].Child            = true;
                Parent = true;
            }
        }