public void EnableEffect() { bool showParticles = false; foreach (SequenceCounter sequence in AvailableSequences) { showParticles = showParticles || _ambassador.CheckThreadProgress(sequence.Name, sequence.Phase); } particleEmitter.emit = showParticles; }