public void drawInEditor(SpriteBatch spriteBatch) { if (!isVisible) { return; } foreach (LevelObject lo in loList) { if (lo is DrawableLevelObject) { DrawableLevelObject dlo = (DrawableLevelObject)lo; if (dlo.isVisible) { dlo.drawInEditor(spriteBatch); } } } if (particleRenderer == null) { particleRenderer = new ParticleRenderer(_graphicsM); particleRenderer.drawParticlesInEditor(_contentM); } particleRenderer.drawParticlesInEditor(_contentM); }
public void drawInEditor(SpriteBatch spriteBatch) { if (!isVisible) { return; } foreach (LevelObject lo in loList) { if (lo is DrawableLevelObject) { DrawableLevelObject dlo = (DrawableLevelObject)lo; if (dlo.isVisible) { dlo.drawInEditor(spriteBatch); } } } }