本文整理汇总了C#中ParticleSystem.SetScaleRange方法的典型用法代码示例。如果您正苦于以下问题:C# ParticleSystem.SetScaleRange方法的具体用法?C# ParticleSystem.SetScaleRange怎么用?C# ParticleSystem.SetScaleRange使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParticleSystem
的用法示例。
在下文中一共展示了ParticleSystem.SetScaleRange方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnTouchEvent
public override bool OnTouchEvent(MotionEvent e)
{
if (!mShouldFollowTouch)
return base.OnTouchEvent(e);
switch (e.Action)
{
case MotionEventActions.Down:
mParticleSystem1 = new ParticleSystem(this, 100, Resource.Drawable.star_dark, 800);
mParticleSystem1.SetScaleRange(0.7f, 1.3f);
mParticleSystem1.SetSpeedRange(0.05f, 0.1f);
mParticleSystem1.SetRotationSpeedRange(90, 180);
mParticleSystem1.SetFadeOut(200, new AccelerateInterpolator());
mParticleSystem1.Emit((int)e.GetX(), (int)e.GetY(), 40);
break;
case MotionEventActions.Move:
mParticleSystem1.UpdateEmitPoint((int)e.GetX(), (int)e.GetY());
break;
case MotionEventActions.Up:
mParticleSystem1.StopEmitting();
break;
}
return true;
}
示例2: Fireworks
void Fireworks()
{
mParticleSystem1 = new ParticleSystem(this, 100, Resource.Drawable.star_dark, 800);
mParticleSystem1.SetScaleRange(0.7f, 1.3f);
mParticleSystem1.SetSpeedRange(0.1f, 0.25f);
mParticleSystem1.SetRotationSpeedRange(90, 180);
mParticleSystem1.SetFadeOut(200, new AccelerateInterpolator());
mParticleSystem1.OneShot(mTextView, 70);
mParticleSystem2 = new ParticleSystem(this, 100, Resource.Drawable.star_white, 800);
mParticleSystem2.SetScaleRange(0.7f, 1.3f);
mParticleSystem2.SetSpeedRange(0.1f, 0.25f);
mParticleSystem2.SetRotationSpeedRange(90, 180);
mParticleSystem2.SetFadeOut(200, new AccelerateInterpolator());
mParticleSystem2.OneShot(mTextView, 70);
}
示例3: OneShotAdvanced
void OneShotAdvanced()
{
mParticleSystem1 = new ParticleSystem(this, 100, Resource.Drawable.star_dark, 2000);
mParticleSystem1.SetScaleRange(0.7f, 1.3f);
mParticleSystem1.SetSpeedRange(0.1f, 0.25f);
mParticleSystem1.SetAcceleration(0.0001f, 90);
mParticleSystem1.SetRotationSpeedRange(90, 180);
mParticleSystem1.SetFadeOut(200, new AccelerateInterpolator());
mParticleSystem1.OneShot(mTextView, 100);
}
示例4: EmitTimeLimited
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);
}