本文整理汇总了C#中ParticleSystem.SetRotationSpeed方法的典型用法代码示例。如果您正苦于以下问题:C# ParticleSystem.SetRotationSpeed方法的具体用法?C# ParticleSystem.SetRotationSpeed怎么用?C# ParticleSystem.SetRotationSpeed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParticleSystem
的用法示例。
在下文中一共展示了ParticleSystem.SetRotationSpeed方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Stars
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);
}
示例2: Confetti
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);
}