using System.Collections; using System.Collections.Generic; using System.Net.Mail; using UnityEngine; using UnityEngine.UIElements; /* 这个controller用来控制注册UI和相关通讯的代码 * 设置注册语言 * 显示和关闭注册菜单 * 跳转下一个场景 * 上传用户注册信息 */ 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 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