Scriptum/Assets/DisplayLvl.cs

24 lines
369 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DisplayLvl : MonoBehaviour
{
public Text displayText;
void Update()
{
int lvl;
string lvlString;
lvl = PlayerPrefs.GetInt("lvl");
lvlString = lvl.ToString();
displayText.text = lvlString;
}
}