using UnityEngine; [ExecuteAlways] public class CameraFollower : MonoBehaviour { public GameObject Player; void Update() { if (Player) transform.position = Player.transform.position; } }