Я новичок в кодировании, и из того, что я понял, следующий код был написан для совместимости с C # 4.0, а не с текущей версией. Есть еще одна ошибка, которую я не смог уместить в заголовке: Неверный токен ';'в объявлении класса, структуры или интерфейса
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class camera_controller : MonoBehaviour
{
public GameObject player;
private Vector3 offset;
Vector3 offset = transform.position;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
void LateUpdate ()
{
transform.position=player.transform.position+offset;
}
}