Esempio n. 1
0
        public NodeComponentCollection Clone(Node newOwner)
        {
            var result = new NodeComponentCollection(newOwner);

            foreach (var c in this)
            {
                result.Add(c.Clone());
            }
            return(result);
        }
Esempio n. 2
0
 protected Node()
 {
     AnimationSpeed     = 1;
     Components         = new NodeComponentCollection(this);
     Animators          = new AnimatorCollection(this);
     Animations         = new AnimationCollection(this);
     Nodes              = new NodeList(this);
     Presenter          = DefaultPresenter.Instance;
     RenderChainBuilder = this;
     ++CreatedCount;
 }