对话回顾

This commit is contained in:
2025-01-10 21:39:25 +08:00
parent 62cc381479
commit b7cb09439e
32 changed files with 1083 additions and 2146 deletions
@@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Linq;
using AibisDream.Kit;
using UnityEngine;
using Yarn.Unity;
namespace AibisDream
{
@@ -18,9 +17,6 @@ namespace AibisDream
private IDialogView _actorBubble;
// 应该会有自定义位置的泡泡,但目前还没想好怎么做
private Dictionary<string, IDialogView> _customBubblePool = new();
private List<IDialogView> _dialogViews;
private IDialogView _currentView;
@@ -52,7 +48,7 @@ namespace AibisDream
_currentView.ShowLine(dialogLine, character, nextStep, onTextShowed, isAutoSkip);
}
public void ShowOptions(DialogueOption[] dialogueOptions, Action<int> onOptionSelected)
public void ShowOptions(DialogOption[] options)
{
gameObject.SetActive(true);
_currentView = _normalBox;
@@ -61,7 +57,7 @@ namespace AibisDream
ProcessOtherBox();
// 展示选项
_normalBox.ShowOptions(dialogueOptions, onOptionSelected);
_normalBox.ShowOptions(options);
}
public void HideDialog()