How do i enhance my code to get the particles to stop after i let off the mouse???

This is the code i’m trying to use.
public class Weapon : MonoBehaviour
{

public WeaponParticlesController weaponParticlesController;


void Update ()
{
	if (Input.GetButtonDown ("Fire1")) { 
		
		weaponParticlesController.Play ();
	
	}
}

}

Along with this code:
using UnityEngine;
using System.Collections;

public class WeaponParticlesController : MonoBehaviour {

public ParticleSystem weaponFireParticles;
public Light weaponFireLight;

void Update ()
{
	weaponFireLight.enabled = weaponFireParticles.isPlaying;
}

public void Play ()
{
	weaponFireParticles.Play ();
}

Use Input.GetButtonUp or Input.GetKeyUp to detect when the mouse is released and then you can do what you want to the ParticleSystem (you probably want Stop(), Pause(), or Clear()). For example

if (Input.GetButtonUp ("Fire1")) { 
    weaponParticlesController.Stop ();
}