NamePicker.cs 483 B

12345678910111213141516171819202122
  1. using DataTools;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. public class NamePicker : MonoBehaviour {
  7. public Text nameText;
  8. [SerializeField]
  9. private DataUser dataUser;
  10. // Use this for initialization
  11. void Start () {
  12. nameText.text = GameGlobal.Instance.PlayerName;
  13. }
  14. // Update is called once per frame
  15. void OnEnable () {
  16. nameText.text = GameGlobal.Instance.PlayerName;
  17. }
  18. }