Esempio n. 1
0
        public override void OnEnter()
        {
            base.OnEnter();

            Color = new CCColor3B(0, 0, 0);
            RemoveChild(m_background, true);
            m_background = null;

            m_emitter = new CCParticleSystemQuad();

            string filename = "Particles/" + m_title;
            m_emitter.InitWithFile(filename);
            AddChild(m_emitter, 10);

            m_emitter.BlendAdditive = true;

            setEmitterPosition();
        }
Esempio n. 2
0
        public override void OnEnter()
        {
            base.OnEnter();

            Color = new CCColor3B(0, 0, 0);
            RemoveChild(m_background, true);
            m_background = null;

            var system = new CCParticleSystemQuad();
            system.InitWithFile("Particles/SpinningPeas");
            system.SetTextureWithRect(CCTextureCache.SharedTextureCache.AddImage("Images/particles"),
                                      new CCRect(0, 0, 32, 32));
            AddChild(system, 10);
            m_emitter = system;

            m_nIndex = 0;
            Schedule(updateQuads, 2.0f);
        }
 public static new CCParticleSystemQuad Create(string plistFile)
 {
     var pRet = new CCParticleSystemQuad();
     pRet.InitWithFile(plistFile);
     return pRet;
 }