12345678910111213141516171819202122 |
- using DataTools;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class NamePicker : MonoBehaviour {
- public Text nameText;
- [SerializeField]
- private DataUser dataUser;
- // Use this for initialization
- void Start () {
- nameText.text = GameGlobal.Instance.PlayerName;
- }
-
- // Update is called once per frame
- void OnEnable () {
- nameText.text = GameGlobal.Instance.PlayerName;
- }
- }
|