void Update ()void Update () { if (Input.GetKey(KeyCode.Space) && Time.time > nextFire) { nextFire = Time.time + fireRate; Instantiate(shot, shotSpawn.position, shotSpawn.rotation); GetComponent<AudioSour
void Update ()void Update () { if (Input.GetKey(KeyCode.Space) && Time.time > nextFire) { nextFire = Time.time + fireRate; Instantiate(shot, shotSpawn.position, shotSpawn.rotation); GetComponent<AudioSour