public static CCParticleExplosion node() { CCParticleExplosion pRet = new CCParticleExplosion(); if (pRet.init()) { return pRet; } return null; }
public override void OnEnter() { base.OnEnter(); m_emitter = new CCParticleExplosion(); m_background.AddChild(m_emitter, 10); m_emitter.Texture = CCTextureCache.SharedTextureCache.AddImage(TestResource.s_stars1); m_emitter.AutoRemoveOnFinish = true; setEmitterPosition(); }