Merge branch 'develop' into feature/pause
This commit is contained in:
@@ -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 选项指令
|
||||
|
||||
|
||||
Reference in New Issue
Block a user