using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowZRotation : MonoBehaviour { [SerializeField] Transform target; void Update() { transform.eulerAngles = new Vector3(90, target.eulerAngles.y, target.eulerAngles.z); } }