public virtual void Destroy() { FlatRedBall.SpriteManager.RemovePositionedObject(this); if (LineInstance != null) { FlatRedBall.Math.Geometry.ShapeManager.Remove(LineInstance); } if (TestEmitter != null) { TestEmitter.Destroy(); } CustomDestroy(); }
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(); }