Shuriken is a little different to the old particle system…this is how i did it:
Start by making a variable:
var beam : ParticleSystem;
function Start(){
//this will make the particle system usable in function Update
beam = GetComponent(ParticleSystem);
//this clears the particle system when you start the game...use it if you like
beam.Stop();
beam.Clear();
}
function Update(){
//This will start the particles playing when you press the left mouse button
if (Input.GetMouseButton(0)){
beam.Play();
}
//This will stop the particle system when you let go of the button
if (Input.GetMouseButtonUp(0)){
beam.Stop();
beam.Clear();
}
}
Attach the script to the particle system, and drag the same particle system into the ‘beam’ variable.
Hopefully this gives you an idea of how the particle system can be stopped and started
If you have 2 particle systems, just use 2 variables (beam & beam2 for instance)
Not used to answering questions, let me know if anything is unclear