How to enable the particle emitter attached to a specific component, when multiple emitters are available.

How can I enable a specific particle emitter, when I have multiple components as children within a game object, each with their own particle emitter?

EDIT: I have created empty gameobjects and renamed them as follow: KiBlast1, KiBlast2, etc.

Each of those created objects contains a particle renderer, emitter, and animator, each object with different attributes. I'm trying to find a way to find the applicable object (E.g KiBlast3) and activate the emitter contained within the object, when the applicable key is pressed.

I tried using the GameObject.find, but cannot seem to get it working withing my CoRoutine.

I am not sure what you mean when you say the particle emitted is attached to a specific component. How is it attached then? A public variable?

If you have a script that knows about its own emitter, you could have a name on each component and use SendMessage.

SendMessage("OnEmit", "Flame");

And then each script implements this as:

var emitter : ParticleEmitter;
var emitterName : String;

function OnEmit(String name)
{
    if (name == emitterName)
        emitter.enabled = true;
}

Got it!

KiBlast1 = GameObject.Find("KiBlast1"); KiBlast1.particleEmitter.emit = false;