Jak znaleźć dowolny element samego GameObject w Untiy
GetComponent<ObstacleSpawner>().enabled = false;
GetComponent<CameraScript>().enabled = false;
Handsome Hornet
GetComponent<ObstacleSpawner>().enabled = false;
GetComponent<CameraScript>().enabled = false;