public void Attach(SpriteBase pSpriteBase) { Debug.Assert(pSpriteBase != null); SpriteBatchNode sbNode = (SpriteBatchNode)this.BaseAdd(); Debug.Assert(sbNode != null); sbNode.Set(pSpriteBase, this); }
public BombRoot(GameObjectName goName, SpriteBaseName sName, float x, float y, int idx) : base(goName, sName, BombType.BombRoot, idx) { this.x = x; this.y = y; SpriteBatch sb = new SpriteBatch(); SpriteBatchNode sbNode = new SpriteBatchNode(); sbNode.Set(SpriteManager.Find(SpriteBaseName.Null), sb); this.pProxySprite.SetSpriteBatchNode(sbNode); this.pCollisionObject.pCollisionSpriteBox.pLineColor = ColorFactory.Create(ColorName.White).pAzulColor; }