using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowPlayer : MonoBehaviour { [SerializeField] GameObject Player; // Update is called once per frame void LateUpdate() { transform.position = Player.transform.position + new Vector3(0, 0, -10); } }