public NodeComponentCollection Clone(Node newOwner) { var result = new NodeComponentCollection(newOwner); foreach (var c in this) { result.Add(c.Clone()); } return(result); }
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; }