当前位置: 首页>>代码示例>>C#>>正文


C# ParticleSystem.SetSpeedByComponentsRange方法代码示例

本文整理汇总了C#中ParticleSystem.SetSpeedByComponentsRange方法的典型用法代码示例。如果您正苦于以下问题:C# ParticleSystem.SetSpeedByComponentsRange方法的具体用法?C# ParticleSystem.SetSpeedByComponentsRange怎么用?C# ParticleSystem.SetSpeedByComponentsRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ParticleSystem的用法示例。


在下文中一共展示了ParticleSystem.SetSpeedByComponentsRange方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: EmitWithGravity

 void EmitWithGravity()
 {
     mParticleSystem1 = new ParticleSystem(this, 100, Resource.Drawable.star_dark, 3000);
     mParticleSystem1.SetAcceleration(0.00013f, 90);
     mParticleSystem1.SetSpeedByComponentsRange(0f, 0f, 0.05f, 0.1f);
     mParticleSystem1.SetFadeOut(200, new AccelerateInterpolator());
     mParticleSystem1.EmitWithGravity(mTextView, (int)GravityFlags.Bottom, 30);
 }
开发者ID:pgulotta,项目名称:LeonidsBind,代码行数:8,代码来源:MainActivity.cs

示例2: 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);
 }
开发者ID:pgulotta,项目名称:LeonidsBind,代码行数:11,代码来源:MainActivity.cs

示例3: Dust

 void Dust()
 {
     mParticleSystem1 = new ParticleSystem(this, 4, Resource.Drawable.dust, 3000);
     mParticleSystem1.SetSpeedByComponentsRange(-0.025f, 0.025f, -0.06f, -0.08f);
     mParticleSystem1.SetAcceleration(0.00001f, 30);
     mParticleSystem1.SetInitialRotationRange(0, 360);
     mParticleSystem1.AddModifier(new AlphaModifier(255, 0, 1000, 3000));
     mParticleSystem1.AddModifier(new ScaleModifier(0.5f, 2f, 0, 1000));
     mParticleSystem1.OneShot(FindViewById(Resource.Id.emiter_bottom), 4);
 }
开发者ID:pgulotta,项目名称:LeonidsBind,代码行数:10,代码来源:MainActivity.cs


注:本文中的ParticleSystem.SetSpeedByComponentsRange方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。