start a particle effect when a button is pushed

C#
 public ParticleSystem particles;

if (Input.GetKeyDown("a")){
	particles.Play();
}
Source

Also in C#: