diff --git a/Assets/Scripts/UI/DialogUI/DialogCanvasManager.cs b/Assets/Scripts/UI/DialogUI/DialogCanvasManager.cs index 3da601c56..eeacf422e 100644 --- a/Assets/Scripts/UI/DialogUI/DialogCanvasManager.cs +++ b/Assets/Scripts/UI/DialogUI/DialogCanvasManager.cs @@ -54,25 +54,6 @@ namespace AibisDream var bubbleGroup = transform.Find("Bubble Group").GetComponent(); RegisterDialogView(DialogViewType.StandardBubble, bubbleGroup); - // 注册Screen类型对话框 - var screenSystem = FindObjectOfType(); - if (screenSystem != null) - { - RegisterDialogView(DialogViewType.Screen, screenSystem); - // 注册Task类型对话框 - if (screenSystem.TaskScreen != null) - { - RegisterDialogView(DialogViewType.Task, screenSystem.TaskScreen); - } - } - - // 注册Bubble类型对话框 - var textBubbleGroup = FindObjectOfType(); - if (textBubbleGroup != null) - { - RegisterDialogView(DialogViewType.Bubble, textBubbleGroup); - } - _defaultView = _dialogViewDict[DialogViewType.StandardBubble]; } @@ -106,24 +87,9 @@ namespace AibisDream // 自动跳过部分 if (DialogController.Instance.quickRunMode) return; - // 检查当前显示的角色是否为Aside,如果是则延迟自动跳过 - bool isAsideRole = false; - if (_showingView is BubbleGroup bubbleGroup) - { - // 通过反射或其他方式检查当前bubble的角色 - var curBubbleField = typeof(BubbleGroup).GetField("_curBubble", - System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); - if (curBubbleField != null) - { - var curBubble = curBubbleField.GetValue(bubbleGroup) as Bubble; - isAsideRole = curBubble != null && curBubble.role == ActorRole.Aside; - } - } - if (DialogController.Instance.autoRunMode || _isNextAutoSkip) { - float skipDelay = isAsideRole ? autoSkipDelay * 2f : autoSkipDelay; // Aside角色延迟更长时间 - _autoNext = ActionKit.Delay(skipDelay, () => + _autoNext = ActionKit.Delay(autoSkipDelay, () => { _autoNext = null; NextStep();