Merge branch 'develop' into feature/pause

This commit is contained in:
2024-11-05 23:34:24 +08:00
5103 changed files with 1228638 additions and 1648 deletions
@@ -40,6 +40,10 @@ namespace AibisDream
OnDialogueComplete?.Invoke();
}
}
get
{
return _isTalking;
}
}
// 对话框被阻塞时不能继续对话框交互
@@ -111,6 +115,27 @@ namespace AibisDream
dialogueRunner.SetProject(yarnProject);
dialogueRunner.StartDialogue("Start");
}
public void StartDialogNode(string nodeName)
{
dialogueRunner.StartDialogue(nodeName);
}
public bool CheckIfNodeExistInCurrentYarnProject(string nodeName)
{
YarnProject currentProject = dialogueRunner.yarnProject;
string[] nodeNames = currentProject.NodeNames;
if (Array.Exists(nodeNames, name => name == nodeName))
{
return true;
}
else
{
Debug.Log($"节点 {nodeName} 不存在!");
return false;
}
}
#region