public void remove() { GameObjectNodeManager.remove(this); //Remove from batch Debug.Assert(cProxySprite != null); SpriteBatchNode sbNode = cProxySprite.getSpriteBatchBNode(); Debug.Assert(sbNode != null); SpriteBatchManager.remove(sbNode); ///3 lines commented for ghost Manager sbNode = this.cCollisionObj.cSpriteBox.getSpriteBatchBNode(); Debug.Assert(sbNode != null); SpriteBatchManager.remove(sbNode); GhostManager.add(this); }
public void removeFromGameManager() { GameObjectNodeManager.remove(this); }