I get the error “Assets\Scripts\Player.cs(16,22): error CS0029: Cannot implicitly convert type ‘UnityEngine.Camera’ to ‘Camera’” even though I’ve tagged the camera as MainCamera.
This is what I have code-wise (where row 16 is the last one in the block below);
public Camera viewCamera;
PlayerController controller;
void Start()
{
controller = GetComponent<PlayerController>();
viewCamera = Camera.main;
}
[edit]Corrected some spelling errors[/edit]