Beispiel #1
0
 /// <summary>
 /// Executes this node on the specified dialogue state.
 /// </summary>
 public override void PerformNode(DialoguePlayer state)
 {
     if (state.EvaluateCondition(Text))
     {
         state.MoveToNode(BranchTrueNext);
     }
     else
     {
         state.MoveToNode(BranchFalseNext);
     }
 }
 /// <summary>
 /// Executes this node on the specified dialogue state.
 /// </summary>
 public override void PerformNode(DialoguePlayer state)
 {
     state.EvaluateCondition(Text);
 }
 /// <summary>
 /// Returns true if this choice is enabled.
 /// </summary>
 public bool IsEnabled(DialoguePlayer state)
 {
     return(!IsCondition || state.EvaluateCondition(Condition));
 }
Beispiel #4
0
 /// <summary>
 /// Returns true if this choice is enabled.
 /// </summary>
 public bool IsEnabled(DialoguePlayer state)
 {
     return(!IsCondition || state.EvaluateCondition(Condition).GetValueOrDefault(false));
 }