using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraFollow : MonoBehaviour { public Transform target; public Vector3 offset; void Update() { transform.position = target.position + offset; } }
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraFollow : MonoBehaviour { public Transform target; public Vector3 offset; void Update() { transform.position = target.position + offset; } }