From d8b64a6280c6c61bc084e75f86376fa08506a6e1 Mon Sep 17 00:00:00 2001 From: wangzhixun <3077614386@qq.com> Date: Wed, 5 Nov 2025 10:59:26 +0800 Subject: [PATCH] 6.0 --- 3d/Assets/Editor/QuestionConfigEditor.cs | 1 + 3d/Assets/Scripts/QuestionManager.cs | 21 ++++++++++----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/3d/Assets/Editor/QuestionConfigEditor.cs b/3d/Assets/Editor/QuestionConfigEditor.cs index 567f313..5b316c3 100644 --- a/3d/Assets/Editor/QuestionConfigEditor.cs +++ b/3d/Assets/Editor/QuestionConfigEditor.cs @@ -3,6 +3,7 @@ using UnityEditor; using System.Collections.Generic; using System.IO; using Newtonsoft.Json; +using System.Text; public class QuestionConfigEditor : EditorWindow { diff --git a/3d/Assets/Scripts/QuestionManager.cs b/3d/Assets/Scripts/QuestionManager.cs index ee489e5..71d1346 100644 --- a/3d/Assets/Scripts/QuestionManager.cs +++ b/3d/Assets/Scripts/QuestionManager.cs @@ -224,17 +224,16 @@ public class QuestionManager : MonoBehaviour c.questionName == name && c.configType == type); } - // 获取对象的Hierarchy路径 - private string GetHierarchyPath(Transform trans) - { - string path = trans.name; - while (trans.parent != null) - { - trans = trans.parent; - path = trans.name + "/" + path; - } - return path; - } + + + + + + + + + + // 重新加载配置并绑定事件(可以在运行时调用) public void ReloadConfig()