void Update() { if (pauseController.GetPauseStatus() == false) { if (Input.GetKeyDown(KeyCode.Space) && Time.time > nextFire) { nextFire = Time.time + fireRate; Instantiate(shot, shotSpawn.position, shotSpawn.rotation); } if (Input.GetKeyDown(KeyCode.E)) { colourController.CycleToNextColour(shot); } if (Input.GetKeyDown(KeyCode.Q)) { colourController.CycleToPreviousColour(shot); } } }