using Newtonsoft.Json; using System.Collections.Generic; using System.Net.Mail; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UIElements; /* 这个controller用来控制用户修改注册信息代码 * 本文件大量代码从RegisterUIController.cs复制过来,任何修复需要同时考虑同步 */ public class UserInfoController : MonoBehaviour { private TextField userName, password, mobile, email; private Button confirm, cancel, logout, deleteAccount; private Label errorMsgLabel; private VisualElement feedback; private string errorText = null; // 错误信息汇总 private string deleteAlertMsg; private Dictionary errorMessageDict = new(); // Start is called once before the first execution of Update after the MonoBehaviour is created void OnEnable() { var root = GetComponent().rootVisualElement; userName = root.Q("name"); password = root.Q("password"); mobile = root.Q("mobile"); email = root.Q("email"); confirm = root.Q("confirmArea").Q