using System.Collections; using System.Collections.Generic; using Convention; using TMPro; using UnityEngine; namespace Demo.Game { public class RotationIndicator : MonoBehaviour { public GameObject faceTo; public TMP_Text text; private void Update() { text.text = transform.eulerAngles.ToString(); if (faceTo != null) text.transform.rotation = faceTo.transform.rotation; } } }