The script has a variable: public Camera PlayerCam; Through the method public void Start() { ... } I want to assign the character’s main camera to this variable. Probyval with
PlayerCam = GameObject.FindGameObjectWithTag("Player").transform.GetChild(0); But an error appears that a variable of type GameObject cannot be entered into a variable of type Camera.