增加了messagebox显示的命令和功能,另外为对话暂停做了一些事件准备

This commit is contained in:
2024-08-25 17:08:53 +08:00
parent 768064fb6f
commit a2bc181a11
7 changed files with 385 additions and 17 deletions
@@ -14,12 +14,17 @@ namespace AibisDream
private Dictionary<string, Action<YarnOption[]>> commandMap = new();
public static event Action OnDialogueStart;
public static event Action OnDialogueComplete;
public bool quickRunMode;
private void Start()
{
dialogueRunner = GetComponentInChildren<DialogueRunner>();
_variableStorage = GetComponentInChildren<InMemoryVariableStorage>();
dialogueRunner.onDialogueStart.AddListener(() => OnDialogueStart?.Invoke());
dialogueRunner.onDialogueComplete.AddListener(() => OnDialogueComplete?.Invoke());
}
#region