BCE0005: Unknown identifier: 'Fire'. / Secondary shot?

I’m not sure why I am getting this error…

Im trying to shoot using a particle system, but for some reason im getting this error

BCE0005: Unknown identifier: ‘Fire’.

var particleSystem : ParticleSystem;
  
function Update ()
{
if(Input.GetButtonDown("Fire1")){
Fire();
}
}

I also am trying to figure out how to add a second fire function to my script once i get past this dumb error, This is what I was thinking (below) but I cant even test it cuz of the error.

var particleSystem1 : ParticleSystem;
var particleSystem2 : ParticleSystem;
  
function Update ()
{
if(Input.GetButtonDown("Fire1")){
Fire(particleSystem1);
}

if(Input.GetButtonDown("Fire2")){
Fire(particleSystem2);
}

}

Is that in the right direction?

You never made a function that pertains to “Fire”.

function Fire(particleSystem prtcl){
     Instantiate(prtcl, transform.position, Quaternion.identity);
}

If I understand what you’re trying to accomplish, there is much more that you need here such as a rigidbody or a collider.