Merge branch 'feature/检测器' into 'develop'

Feature/检测器

See merge request aibis-dream/aibis-dream!59
This commit is contained in:
2024-11-01 12:54:07 +00:00
5105 changed files with 1228245 additions and 1532 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