本文整理汇总了C#中ParticleEmitter.Start方法的典型用法代码示例。如果您正苦于以下问题:C# ParticleEmitter.Start方法的具体用法?C# ParticleEmitter.Start怎么用?C# ParticleEmitter.Start使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParticleEmitter
的用法示例。
在下文中一共展示了ParticleEmitter.Start方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ProjectileMovesAcrossScreenEmittingFire
public void ProjectileMovesAcrossScreenEmittingFire()
{
var start = -3 * Vector3D.UnitX;
var emitter = new ParticleEmitter(CreateTrackingParticleData(), start);
var emitter2 = new ParticleEmitter(CreateFireExhaustParticleData(), start);
emitter.Start<MoveAcrossScreen>();
emitter2.Start<MoveAcrossScreen>();
}
示例2: ParticleTracksEmitterAcrossScreenFor4Seconds
public void ParticleTracksEmitterAcrossScreenFor4Seconds()
{
emitterData = new ParticleEmitterData
{
MaximumNumberOfParticles = 1,
SpawnInterval = 0.001f,
Size = new RangeGraph<Size>(new Size(0.1f)),
Color = new RangeGraph<Color>(Color.White),
ParticleMaterial = new Material(ShaderFlags.Position2DColoredTextured, "ImageAnimation"),
DoParticlesTrackEmitter = true
};
emitter = new ParticleEmitter(emitterData, new Vector2D(0.2f, 0.5f));
emitter.Start<MoveAcrossScreen>();
emitter.DisposeAfterSeconds(4);
AdvanceTimeAndUpdateEntities();
}
示例3: ParticleTracksEmitterAcrossScreenFor4Seconds
public void ParticleTracksEmitterAcrossScreenFor4Seconds()
{
var emitter = new ParticleEmitter(CreateTrackingParticleData(), Vector3D.Zero);
emitter.Start<MoveAcrossScreen>();
emitter.DisposeAfterSeconds(4);
}