using System.Collections; using System.Collections.Generic; using UnityEngine; public class TutorialBuddy : MonoBehaviour { public Transform playerTransform; private void Update() { // Look at the player transform.LookAt(playerTransform.position); // Do not rotate the y-axis Vector3 euler = transform.rotation.eulerAngles; euler.x = 0; euler.z = 0; transform.rotation = Quaternion.Euler(euler); } }