Scriptum/Assets/DisplayLvl.cs

24 lines
368 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;
void Start()
{
int lvl;
string lvlString;
lvl = PlayerPrefs.GetInt("lvl");
lvlString = lvl.ToString();
displayText.text = lvlString;
}
}