Beispiel #1
0
 protected virtual void DialogueOnStatusChanged(DialogueStatus before, DialogueStatus after, Dialogue self, IDialogueOwner owner)
 {
     if (after == DialogueStatus.InActive)
     {
         var trigger = GetComponent <TriggerBase>();
         if (trigger != null)
         {
             trigger.UnUse();
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// Note: This clears the dialogueOwner on this manager. If you want to set the manager call SetCurrentDialogueOwner, which can also set the dialogue.
 /// </summary>
 /// <param name="dialogue"></param>
 public virtual void SetCurrentDialogue(Dialogue dialogue)
 {
     SetCurrentDialogue(dialogue, null);
 }
Beispiel #3
0
 protected virtual void DialogueOnStatusChanged(DialogueStatus before, DialogueStatus after, Devdog.QuestSystemPro.Dialogue.Dialogue self, IDialogueOwner owner)
 {
 }
Beispiel #4
0
 protected virtual void NotifyCurrentDialogueStatusChanged(DialogueStatus before, DialogueStatus after, Dialogue self, IDialogueOwner owner)
 {
     if (OnCurrentDialogueStatusChanged != null)
     {
         OnCurrentDialogueStatusChanged(before, after, self, owner);
     }
 }
Beispiel #5
0
 public bool CanUse(Dialogue dialogue)
 {
     return(conditions.All(o => o.CanUse(dialogue)) && dialogue.nodes[toNodeIndex].CanUseNode());
 }