public void attach(SpriteBase pNode) { Debug.Assert(pNode != null); SBNode pSBNode = this.poSBNodeMan.attach(pNode); Debug.Assert(pSBNode != null); // initialize SpriteBatchNode pSBNode.set(pNode, this.poSBNodeMan); }
public SBNode attach(SpriteBase pNode) { // get a node from reserve, add to active, return it SBNode pSBNode = (SBNode)this.baseAdd(); Debug.Assert(pSBNode != null); // initialize SpriteBatchNode pSBNode.set(pNode, this); return(pSBNode); }