Ejemplo n.º 1
0
        public static CCParticleSmoke node()
        {
            CCParticleSmoke pRet = new CCParticleSmoke();

            if (pRet.init())
            {
                return(pRet);
            }
            return(null);
        }
Ejemplo n.º 2
0
        public static new CCParticleSmoke node()
        {
            CCParticleSmoke cCParticleSmoke = new CCParticleSmoke();

            if (cCParticleSmoke.init())
            {
                return(cCParticleSmoke);
            }
            return(null);
        }
 public static CCParticleSmoke node()
 {
     CCParticleSmoke pRet = new CCParticleSmoke();
     if (pRet.init())
     {
         return pRet;
     }
     return null;
 }
Ejemplo n.º 4
0
        public override void OnEnter()
        {
            base.OnEnter();

            m_emitter = new CCParticleSmoke();

            m_background.AddChild(m_emitter, 10);
            m_emitter.Texture = CCTextureCache.SharedTextureCache.AddImage(TestResource.s_fire);

            CCPoint p = m_emitter.Position;
            m_emitter.Position = new CCPoint(p.X, 100);

            setEmitterPosition();
        }