using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowFixedUpdateCamera : MonoBehaviour { public Transform target; void FixedUpdate() { transform.position = new Vector3(target.position.x, target.position.y, transform.position.z); } }