Пример #1
0
 public IEnumerable <DialogueNode> GetAllChildren(DialogueNode parentNode)
 {
     foreach (string childID in parentNode.GetChrildren())
     {
         if (nodeLookup.ContainsKey(childID))
         {
             yield return(nodeLookup[childID]);
         }
     }
 }
Пример #2
0
 private int RollNextIndex()
 {
     return(UnityEngine.Random.Range(0, currentNode.GetChrildren().Count));
 }