29 lines
698 B
C#
29 lines
698 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class MainUser : UIController
|
|
{
|
|
[SerializeField] Image im;
|
|
[SerializeField] TextMeshProUGUI text;
|
|
public string path;
|
|
public new string name;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
path = UIManager.ins.UserPath;
|
|
name = UIManager.ins.UserName;
|
|
if (!string.IsNullOrEmpty(path)&&!string.IsNullOrEmpty(name))
|
|
{
|
|
UIManager.ins.LoadImageAsync(path, im, false);
|
|
text.text = name;
|
|
}
|
|
else
|
|
{
|
|
Debug.LogError("Í·Ïñ»ñȡʧ°Ü");
|
|
}
|
|
}
|
|
}
|