using UnityEngine; public class MoveCamera : MonoBehaviour { public Transform player; void Update() { transform.position = player.transform.position; } }