using System.Collections; using System.Collections.Generic; using UnityEngine; public class FaceCamera : MonoBehaviour { [SerializeField] Transform target; void Update() { if (target != null) { transform.LookAt(transform.position + target.transform.rotation * Vector3.forward, target.transform.rotation * Vector3.up); } } }