基本框架的更新
This commit is contained in:
@@ -113,7 +113,24 @@ namespace AibisDream
|
||||
}
|
||||
public void StartDialogNode(string nodeName)
|
||||
{
|
||||
dialogueRunner.StartDialogue(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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user