private void ComponentsCreatedHandler(object sender, EventArgs e) { mParticleSystem = Owner.GetComponent <ParticleSystemRenderComponent>(ActorComponent.ComponentType.Render); if (mParticleSystem == null) { throw new LevelManifestException("Expected ActorComponent missing."); } }
private void ComponentsCreatedHandler(object sender, EventArgs e) { mParticleSystem = Owner.GetComponent<ParticleSystemRenderComponent>(ActorComponent.ComponentType.Render); if (mParticleSystem == null) throw new LevelManifestException("Expected ActorComponent missing."); mTransform = Owner.GetComponent<TransformComponent>(ActorComponent.ComponentType.Transform); if (mTransform == null) throw new LevelManifestException("Expected ActorComponent missing."); }
public Contrail(Actor owner) : base(owner) { mParticleSystem = null; mTargetActorId = Actor.INVALID_ACTOR_ID; OffsetFromTarget = Vector3.Zero; mPreviousPosition = Vector3.One * Single.MaxValue; ParticlesPerSecond = 60.0f; mTimeLeftOver = 0.0f; }
public Sparks(Actor owner) : base(owner) { mParticleSystem = null; }
public ExplosionFire(Actor owner) : base(owner) { mParticleSystem = null; }
public ParticleSpray(Actor owner) : base(owner) { mParticleSystem = null; mTransform = null; }