public virtual void AddChild(PositionedObject child, bool activeDependent, bool directConnection) { Children.Add(child); Children[Children.Count - 1].ActiveDependent = activeDependent; Children[Children.Count - 1].DirectConnection = directConnection; m_Parent = true; }
public override void AddChild(PositionedObject 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; } }