Scriptum/Assets/DisplayLvl.cs

24 lines
369 B
C#
Raw Normal View History

2022-10-23 13:29:22 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DisplayLvl : MonoBehaviour
{
public Text displayText;
2022-10-23 15:56:31 +02:00
void Update()
2022-10-23 13:29:22 +02:00
{
int lvl;
string lvlString;
lvl = PlayerPrefs.GetInt("lvl");
lvlString = lvl.ToString();
displayText.text = lvlString;
}
}