using Newtonsoft.Json; using System.Collections.Generic; using System.Net.Mail; using UnityEngine; using UnityEngine.UIElements; /* 本文件控制Reset UI document * 1. 显示和关闭Reset UI * 2. 显示和隐藏输入框 * 3. 提交数据到服务器 * 4. 显示错误信息 */ public class ResetUIController : MonoBehaviour { // Start is called once before the first execution of Update after the MonoBehaviour is created private Label message, errMsg; private TextField email, mobile, verification, password; private Button submit, cancel; private int condition = 0; // 0: 中文初始, 1: 其他语言初始, 2: 输入验证码和新的密码 private Dictionary errorMessageDict = new(); private string errorText = string.Empty; // 错误信息汇总 void Start() { var root = GetComponent().rootVisualElement; message = root.Q