public override void OnEnter() { base.OnEnter(); Color = CCTypes.CCBlack; RemoveChild(m_background, true); m_background = null; var particle = new RainbowEffect(); particle.InitWithTotalParticles(50); AddChild(particle); CCSize s = CCDirector.SharedDirector.WinSize; particle.Position = (new CCPoint(s.Width / 2, s.Height / 2)); m_emitter = particle; }
public override void OnEnter() { base.OnEnter(); CCSize windowSize = Layer.VisibleBoundsWorldspace.Size; Color = CCColor3B.Black; RemoveChild(Background, true); Background = null; var particle = new RainbowEffect(50); AddChild(particle); particle.Position = (MidWindowPoint); Emitter = particle; }
public override void OnEnter() { base.OnEnter(); Color = CCColor3B.Black; RemoveChild(Background, true); Background = null; var particle = new RainbowEffect(50); AddChild(particle); particle.Position = MidWindowPoint; Emitter = particle; }