using Newtonsoft.Json; using System; using System.Collections; using System.Collections.Generic; using System.Net.Mail; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UIElements; /* 这个controller用来控制注册UI和相关通讯的代码 * 本文件大量代码赋予UserInfoController.cs复用,任何修复需要同时考虑同步 * 设置注册语言 * 显示和关闭注册菜单 * 跳转下一个场景 * 上传用户注册信息 */ public class RegisterUIController : MonoBehaviour { private TextField userName, password, mobile, email; private Button confirm, cancel; private Label errorMsgLabel; private string errorText = null; // 错误信息汇总 private Dictionary errorMessageDict = new(); // Start is called once before the first execution of Update after the MonoBehaviour is created private Dictionary regTempInfo = new(); // 临时保存登录信息 void Start() { 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