Пример #1
0
        /// <summary>
        /// 
        /// </summary>
        public PartyManager_cl()
        {
            mParticleRenderer = new SpriteBatchRenderer
            {
                GraphicsDeviceService = FNA.Game_cl.BaseInstance.Graphics
            };

            mParticleRenderer.LoadContent(FNA.Game_cl.BaseInstance.Content);
        }
Пример #2
0
        public GOEffect(GraphicsDeviceManager _graphics, ContentManager _Content, string _fileName)
        {
            graphics = _graphics;
            Content = _Content;

            renderer = new SpriteBatchRenderer { GraphicsDeviceService = graphics };
            effect = new ParticleEffect();
            fileName = _fileName;

            effect = Content.Load<ParticleEffect>(fileName);
            effect.LoadContent(Content);
            effect.Initialise();
            renderer.LoadContent(Content);
            Visible = true;
        }