Esempio n. 1
0
 void EmitTimeLimited()
 {
     mParticleSystem1 = new ParticleSystem(this, 100, Resource.Drawable.star_dark, 1000);
     mParticleSystem1.SetScaleRange(0.7f, 1.3f);
     mParticleSystem1.SetSpeedModuleAndAngleRange(0.07f, 0.16f, 0, 180);
     mParticleSystem1.SetRotationSpeedRange(90, 180);
     mParticleSystem1.SetAcceleration(0.00013f, 90);
     mParticleSystem1.SetFadeOut(200, new AccelerateInterpolator());
     mParticleSystem1.Emit(mTextView, 100, 2000);
 }
Esempio 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);
        }