Como encontrar qualquer componente do GameObject
GetComponent<ObstacleSpawner>().enabled = false;
GetComponent<CameraScript>().enabled = false;
Handsome Hornet
GetComponent<ObstacleSpawner>().enabled = false;
GetComponent<CameraScript>().enabled = false;