Пример #1
0
        public override void onEnter()
        {
            base.onEnter();

            Color = new ccColor3B(0,0,0);
            removeChild(m_background, true);
            m_background = null;

            CCParticleSystemQuad system = new CCParticleSystemQuad();
            system.initWithFile("Images/SpinningPeasPlist");
            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);
        }