GameObject camera = gameObject.Find(“PlayerCamera”);
PlayerCamera cameraScript = camera.GetComponent();
cameraScript.snapToBack();
I don’t understand why this isn’t compiling -_-
The compiler says “type or namespace PlayerCamera cannot be found” on
the PlayerCamera cameraScript line.