예제 #1
0
        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);
        }
예제 #2
0
        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);
                    }
                }
            }
        }