24 lines
368 B
C#
24 lines
368 B
C#
|
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;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|