14 lines
246 B
C#
14 lines
246 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ProfileName : MonoBehaviour
|
|
{
|
|
private void OnEnable()
|
|
{
|
|
if ((bool)GlobalSettings.Instance)
|
|
{
|
|
GetComponent<Text>().text = GlobalSettings.Instance.playerSettings.playersName;
|
|
}
|
|
}
|
|
}
|