示例#1
0
        public virtual void Destroy()
        {
            FlatRedBall.SpriteManager.RemovePositionedObject(this);

            if (LineInstance != null)
            {
                FlatRedBall.Math.Geometry.ShapeManager.Remove(LineInstance);
            }
            if (TestEmitter != null)
            {
                TestEmitter.Destroy();
            }
            CustomDestroy();
        }
示例#2
0
        public virtual void Destroy()
        {
            FlatRedBall.SpriteManager.RemovePositionedObject(this);

            if (CircleInstance != null)
            {
                FlatRedBall.Math.Geometry.ShapeManager.Remove(CircleInstance);
            }
            if (ContrailsEmitter != null)
            {
                ContrailsEmitter.Destroy();
            }
            if (DeathEmitter != null)
            {
                DeathEmitter.Destroy();
            }
            mGeneratedCollision.RemoveFromManagers(clearThis: true);
            CustomDestroy();
        }