feat: stats display (#45)

This commit is contained in:
2025-03-17 11:49:34 +01:00
committed by GitHub
parent 28e56eeab7
commit a9bd2a0048
8 changed files with 526 additions and 464 deletions

View File

@ -0,0 +1,25 @@
using UnityEngine;
using UnityEngine.UI;
public class LevelProgression : MonoBehaviour
{
public Text levelProgressionText;
public LevelsLoader levelsLoader;
private string GetText()
{
return "Progression: ";
}
public void Start()
{
levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>();
levelProgressionText.text = GetText();
}
public void Update()
{
levelProgressionText.text = GetText();
}
}