Particle Systems Issue

Unity is giving me errors about the emitter.Play = true in the following code. Says the emitter should be a variable or property or indexer. What’s going on?

void LightFire(GameObject campfire) {
		ParticleSystem[] fireEmitters;
		
		fireEmitters = campfire.GetComponentsInChildren<ParticleSystem>();
		foreach(ParticleSystem emitter in fireEmitters) {
			emitter.Play = true;
		}
		campfire.audio.Play ();
		Destroy(matchGUI);
		haveMatches = false;
	}

Think I was using the wrong variable for the new Shuriken particle system. Changed Play to enableEmission and Unity no longer complains.

doh! Wasn’t treating Play() as a function - didn’t pass in the bool value correctly. Issue resolved.