2025-02-21 18:35:51 +00:00

29 lines
505 B
C#

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class PlayerName : MonoBehaviour
{
[SerializeField] private TMP_Text nameTag;
[SerializeField] private StringSharedField nick;
private void Awake()
{
}
// Start is called before the first frame update
void Start()
{
}
private void Update()
{
if (nameTag == null) return;
if (nick == null) return;
nameTag.text = nick.Value;
}
}