б
You probably need to assign the player variable of the FollowPlayer script in the inspector.
FollowPlayer.LateUpdate () (at Assets/Scripts/FollowPlayer.cs:18), с кодом:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FollowPlayer : MonoBehaviour
{
public GameObject player;
private Vector3 offset = new Vector3(0, 5, -7);
// Start is called before the first frame update
void Start()
{
offset = transform.position - player.transform.position;
}
// Update is called once per frame
void Update()
{
transform.position = player.transform.position + offset; //проблемная строка
}
}