using Newtonsoft.Json; using System.Collections.Generic; 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 SceneCondition sceneCondition = SceneCondition.ChineseInitial; private Dictionary errorMessageDict = new(); private string errorText = string.Empty; // 错误信息汇总 void OnEnable() { var root = GetComponent().rootVisualElement; message = root.Q