It seems that the camera
variable isn't initialized ("not set to an instance of an object"). Use Camera.main
to obtain a reference to the main camera. The following line in Update()
should be enough:
Camera.main.GetComponent(BlurEffect).enabled = paused;