Why won't my enemy ship shoot?

Hi I am adding an enemy space ship to my now finished second tutorial game.
I am trying to get it to shoot and be able to control the speed at which it shoots.
I tried doing a similar script to the player shot script but even the most basic form of that script doesn’t make the enemy shoot.
Any help would be much appreciated!

If you want shooting behaviour, I can help you:

using UnityEngine;
using System.Collections;

public class ShootBehaviour : MonoBehaviour
{
    public Transform shootPoint;  //Point at where the bullet spawns
    public GameObject bulletPrefab;
    public float fireRate = 0.5f;
    public floar bulletSpeed = 100.0f;   //Speed of bullet
    
    private float nextFire = 0.0f;
    
    void Start()
    {
        
    }

    void Update()
    {
        if (Input.GetButton("Fire1"))
        {
            if (Time.time > nextFire)
            {
                nextFire = Time.time + fireRate;
                GameObject bulletInstance = Instantiate(bulletPrefab, shootPoint.position, shootPoint.rotation) as GameObject;
                bulletInstance.GetComponent<Rigidbody>().AddForce(shootPoint.forward * bulletSpeed);
            }
        }
    }

}