Beispiel #1
0
 /// <summary>
 /// Completes the dialogue, disabling the canvas.
 /// </summary>
 void EndDialog()
 {
     m_canvas.enabled  = false;
     awaitingKeyInput  = false;
     currentNodeCanvas = null;
     currentID         = 0;
 }
Beispiel #2
0
 /// <summary>
 /// Begins a dialogue based on the input nodeCanvas, beginning at the DialogStartNode with the given ID.
 /// </summary>
 /// <param name="nodeCanvas"></param>
 /// <param name="dialogID"></param>
 public void StartDialog(DialogNodeCanvas nodeCanvas, int dialogID)
 {
     /*_dialogIdTracker.Clear();
      * foreach (int id in nodeCanvas.GetAllDialogId())
      * {
      *  _dialogIdTracker.Add(id, nodeCanvas);
      * }*/
     currentNodeCanvas = nodeCanvas;
     currentID         = dialogID;
     currentNodeCanvas.ActivateDialog(dialogID, true);
     LoadNode(currentNodeCanvas.GetDialog(dialogID));
     m_canvas.enabled = true;
 }