回退下
This commit is contained in:
@@ -54,25 +54,6 @@ namespace AibisDream
|
||||
var bubbleGroup = transform.Find("Bubble Group").GetComponent<IDialogView>();
|
||||
RegisterDialogView(DialogViewType.StandardBubble, bubbleGroup);
|
||||
|
||||
// 注册Screen类型对话框
|
||||
var screenSystem = FindObjectOfType<AibisDream.FixSystem.ScreenSystem>();
|
||||
if (screenSystem != null)
|
||||
{
|
||||
RegisterDialogView(DialogViewType.Screen, screenSystem);
|
||||
// 注册Task类型对话框
|
||||
if (screenSystem.TaskScreen != null)
|
||||
{
|
||||
RegisterDialogView(DialogViewType.Task, screenSystem.TaskScreen);
|
||||
}
|
||||
}
|
||||
|
||||
// 注册Bubble类型对话框
|
||||
var textBubbleGroup = FindObjectOfType<TextBubbleGroup>();
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user