From 05a4f2113339703b5eef4c8f2e9fa5c25b64e17f Mon Sep 17 00:00:00 2001 From: Ding Yuntian <1491671119@qq.com> Date: Tue, 24 Jun 2025 14:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Editor/Inspector/ActorSlotEditor.cs | 6 ++++++ Assets/Scripts/FixSystemNew/Screen System/TaskScreen.cs | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/Assets/Editor/Inspector/ActorSlotEditor.cs b/Assets/Editor/Inspector/ActorSlotEditor.cs index c774e392e..a23d6cfd4 100644 --- a/Assets/Editor/Inspector/ActorSlotEditor.cs +++ b/Assets/Editor/Inspector/ActorSlotEditor.cs @@ -1,4 +1,5 @@ using UnityEditor; +using UnityEngine; namespace AibisDream.SystemEditor { @@ -15,6 +16,11 @@ namespace AibisDream.SystemEditor EditorGUILayout.LabelField("层级设置", EditorStyles.boldLabel); example.sortingLayer = EditorKit.SortingLayerField("目标层级", example.sortingLayer); example.sortingOrder = EditorGUILayout.IntField("层级顺序", example.sortingOrder); + + if (GUI.changed) + { + EditorUtility.SetDirty(target); + } } } } \ No newline at end of file diff --git a/Assets/Scripts/FixSystemNew/Screen System/TaskScreen.cs b/Assets/Scripts/FixSystemNew/Screen System/TaskScreen.cs index 88d11ff13..4e4c59d69 100644 --- a/Assets/Scripts/FixSystemNew/Screen System/TaskScreen.cs +++ b/Assets/Scripts/FixSystemNew/Screen System/TaskScreen.cs @@ -46,6 +46,14 @@ namespace AibisDream public void ShowLine(string dialogLine, CharacterVo character, Action nextStep, string lineId, bool isAutoSkip = false) { + if (_taskDict.ContainsKey(lineId)) + { + EnumEventSystem.Global.Send(DialogEventEnum.LineShown); + EnumEventSystem.Global.Send(DialogEventEnum.LineEnd); + nextStep.Invoke(); + return; + } + var taskItem = Instantiate(_taskItemPrefab, _taskListParent); var task = taskItem.GetComponent(); task.text = $"\u25cf {dialogLine}";