using TMPro; using UnityEngine; /// /// LevelIndicatorController updates the UI text to show the current level. /// [RequireComponent(typeof(TextMeshProUGUI))] public class LevelIndicatorController : MonoBehaviour { private TextMeshProUGUI _textMeshPro; private void Start() { _textMeshPro = GetComponent(); _textMeshPro.text = $"Level {TransitionManager.Instance.currentLevel}"; } }