예제 #1
0
        public void activate(Alien alien)
        {
            //SpriteBatch boxBatch = SpriteBatchManager.find(SpriteBatch.SpriteBatchName.Boxes);
            this.cPCSTree.Insert(alien, this.cParent);
            alien.addSpriteToBatch(this.cSpriteBatch);
            alien.addCollisionToBatch(SpriteBatchManager.find(SpriteBatch.SpriteBatchName.Boxes));

            if (alien.cGameObjectName == GameObject.GameObjectName.Column)
            {
                columnCount++;
            }
            else
            {
                alienCount++;
            }
        }