init: version 1
This commit is contained in:
17
Assets/Prefabs/UI/Scripts/LevelIndicatorController.cs
Normal file
17
Assets/Prefabs/UI/Scripts/LevelIndicatorController.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// LevelIndicatorController updates the UI text to show the current level.
|
||||
/// </summary>
|
||||
[RequireComponent(typeof(TextMeshProUGUI))]
|
||||
public class LevelIndicatorController : MonoBehaviour
|
||||
{
|
||||
private TextMeshProUGUI _textMeshPro;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_textMeshPro = GetComponent<TextMeshProUGUI>();
|
||||
_textMeshPro.text = $"Level {TransitionManager.Instance.currentLevel}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user