示例#1
0
        protected virtual void OnChangeNodeEvent(DialogNode <TContent> nextNode)
        {
            EventHandler <DialogNode <TContent> > handler = ChangeNodeEvent;

            handler?.Invoke(this, nextNode);
        }
示例#2
0
 private void OptionSelectEvent(object sender, DialogNode <TContent> nextNode)
 {
     OnChangeNodeEvent(nextNode);
 }
示例#3
0
 public static Dialog <TContent> CreateNew(DialogNode <TContent> startNode)
 {
     return(new Dialog <TContent>(startNode));
 }
示例#4
0
 private void ChangeNodeEvent(object sender, DialogNode <TContent> nextNode)
 {
     this.CurrentNode = nextNode;
     this.SubscribeToCurrentNodeEvent();
 }
示例#5
0
 private Dialog(DialogNode <TContent> startNode)
 {
     this.CurrentNode = startNode;
     this.SubscribeToCurrentNodeEvent();
 }