Ejemplo n.º 1
0
 void Stars()
 {
     mParticleSystem1 = new ParticleSystem(this, 10, Resource.Drawable.star, 3000);
     mParticleSystem1.SetSpeedByComponentsRange(-0.1f, 0.1f, -0.1f, 0.02f);
     mParticleSystem1.SetAcceleration(0.000003f, 90);
     mParticleSystem1.SetInitialRotationRange(0, 360);
     mParticleSystem1.SetRotationSpeed(120);
     mParticleSystem1.SetFadeOut(2000);
     mParticleSystem1.AddModifier(new ScaleModifier(0f, 1.5f, 0, 1500));
     mParticleSystem1.OneShot(mTextView, 10);
 }
Ejemplo n.º 2
0
        void Confetti()
        {
            mParticleSystem1 = new ParticleSystem(this, 80, Resource.Drawable.confeti2, 10000);
            mParticleSystem1.SetSpeedModuleAndAngleRange(0f, 0.1f, 180, 180);
            mParticleSystem1.SetRotationSpeed(144);
            mParticleSystem1.SetAcceleration(0.000017f, 90);
            mParticleSystem1.Emit(FindViewById(Resource.Id.emiter_top_right), 8);

            mParticleSystem2 = new ParticleSystem(this, 80, Resource.Drawable.confeti3, 10000);
            mParticleSystem2.SetSpeedModuleAndAngleRange(0f, 0.1f, 0, 0);
            mParticleSystem2.SetRotationSpeed(144);
            mParticleSystem2.SetAcceleration(0.000017f, 90);
            mParticleSystem2.Emit(FindViewById(Resource.Id.emiter_top_left), 8);
        }