Code that generates an error:
void Update() { if (Input.touchCount > 0) { RaycastHit2D hit = Physics2D.Raycast(Camera.main.ScreenToWorldPo
Make sure you have in your scene an active gameobject with the Camera component and the tag "MainCamera"
Camera