示例#1
0
 /// <summary>
 /// Attempts to set the current node to the node with the inputted name in the story.
 /// If no such node exists, this function will not change the value of the current node.
 /// </summary>
 /// <param name="nodeName"></param>
 public void TrySetCurrentNode(string nodeName)
 {
     CurrentNode = Story.FindNode(nodeName) ?? CurrentNode;
 }
示例#2
0
 /// <summary>
 /// Attempts to set the current node to the node with the inputted NodeIndex in the story.
 /// If no such node exists, this function will not change the value of the current node.
 /// </summary>
 /// <param name="nodeName"></param>
 public void TrySetCurrentNode(int nodeIndex)
 {
     CurrentNode = Story.FindNode(nodeIndex) ?? CurrentNode;
 }