Esempio n. 1
0
 public void NextNode()
 {
     elementNum++;
     if (elementNum < interactionElements.Count)
     {
         currentInteraction          = interactionElements[elementNum];
         currentInteraction.nextNode = NextNode;
         currentInteraction.Setup();
     }
     else
     {
         Screen.CloseWindow("interaction");
     }
 }
Esempio n. 2
0
 public void PreviousNode()
 {
     elementNum--;
     if (elementNum >= 0)
     {
         currentInteraction          = interactionElements[elementNum];
         currentInteraction.nextNode = NextNode;
         currentInteraction.Setup();
     }
     else
     {
         Screen.CloseWindow("interaction");
         elementNum = 0;
     }
 }
Esempio n. 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);
 }