示例#1
0
        public void Attach(SpriteBase pSpriteBase)
        {
            Debug.Assert(pSpriteBase != null);
            SpriteBatchNode sbNode = (SpriteBatchNode)this.BaseAdd();

            Debug.Assert(sbNode != null);

            sbNode.Set(pSpriteBase, this);
        }
示例#2
0
        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;
        }