Use GetComponent<Camera> here, don't use Camera.main