feat: json loader (#37)

This commit is contained in:
2025-02-17 12:27:09 +01:00
committed by GitHub
parent 51404e5cc6
commit 827c867052
89 changed files with 1143 additions and 888 deletions

View File

@ -0,0 +1,19 @@
using UnityEngine;
using UnityEngine.UI;
public class LevelNameText : MonoBehaviour
{
public Text levelNameText;
public LevelsLoader levelsLoader;
public void Start()
{
levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>();
levelNameText.text = levelsLoader.levelCurrent.name;
}
public void Update()
{
levelNameText.text = levelsLoader.levelCurrent.name;
}
}