Exemple #1
0
 public void NextNode()
 {
     elementNum++;
     if (elementNum < interactionElements.Count)
     {
         currentInteraction          = interactionElements[elementNum];
         currentInteraction.nextNode = NextNode;
         currentInteraction.Setup();
     }
     else
     {
         Screen.CloseWindow("interaction");
     }
 }
Exemple #2
0
 public void PreviousNode()
 {
     elementNum--;
     if (elementNum >= 0)
     {
         currentInteraction          = interactionElements[elementNum];
         currentInteraction.nextNode = NextNode;
         currentInteraction.Setup();
     }
     else
     {
         Screen.CloseWindow("interaction");
         elementNum = 0;
     }
 }
Exemple #3
0
 public HashSet <UIBase> LoadObjects()
 {
     blob.ClickAction = (x, y) => {
         if (currentInteraction is InteractionChoice c)
         {
             return(c.CheckClick(x, y));
         }
         else
         {
             NextNode();
             return(true);
         }
     };
     elementNum = 0;
     foreach (InteractionBase b in interactionElements)
     {
         b.nextNode = NextNode;
     }
     currentInteraction = interactionElements[elementNum];
     currentInteraction.Setup();
     return(UIObjects);
 }