How to activate a Particle System?

I recently picked Unity back up after about 1 1/2 years, and it seems the particle system has changed. I’ve looked very hard for the answer, but to no avail, I come here.

I am simply trying to activate, or “Play”, a particle system after the press of a button.

I turned “Loop” off and disabled “Play on Awake”.

I thought this would work:

GetComponent <ParticleSystem>().Play ();

but from what I’ve read, somehow using these pieces of code may also work:

ParticleSystem.EmissionModule em = GetComponent<ParticleSystem>().emission;
em.enabled = true;

Again, all I want to do is enable this particle system anytime I press a button.

-.- I figured it out, you literally just have to put it in order:

    GetComponent <ParticleSystem>().Play ();
     ParticleSystem.EmissionModule em = GetComponent<ParticleSystem>().emission;
     em.enabled = true;