Esempio n. 1
0
 public void Say(Manuscript.Dialog lines, int amountOfLines)
 {
     dialogDone    = false;
     messageDone   = true;
     lineNumber    = amountOfLines;
     currentDialog = lines;
     ContinueDialog();
 }
Esempio n. 2
0
 public void InitiateDialog(Manuscript.Dialog dialog)
 {
     lineIndex     = 0;
     dialogDone    = false;
     currentDialog = dialog;
     messageDone   = true;
     lineNumber    = dialog.myLines.Count;
     ContinueDialog();
 }
Esempio n. 3
0
 public bool OnPlay(EntityManager entityManager, UIManager UI, Manuscript.Dialog dialog, Team team)
 {
     if (entityManager.currentlySpawnedEntities.Count > 2)
     {
         if (!entityManager.currentlySpawnedEntities[2].GetComponent <EnemyController>().isSpawning&&UI.speechBubble_Obj.lineIndex == 0)
         {
             entityManager.currentlySpawnedEntities[2].ToggleFrozen(true);
             UI.OpenOrClose(UI.speechBubble);
             UI.speechBubble_Obj.Say(dialog.myLines[0]);
         }
     }
     else if (UI.speechBubble_Obj.lineIndex == 1 && team.players[1].GetComponent <PlayerBallController>().balls.Count == 1)
     {
         UI.OpenOrClose(UI.speechBubble);
         UI.speechBubble_Obj.Say(dialog, 2);
     }
     else if (UI.speechBubble_Obj.lineIndex == 3 && team.players[0].GetComponent <PlayerBallController>().balls.Count == 3)
     {
         UI.OpenOrClose(UI.speechBubble);
         UI.speechBubble_Obj.Say(dialog.myLines[3]);
     }
     else if (UI.speechBubble_Obj.lineIndex == 4 && team.players[0].GetComponent <PlayerMovementController>().HasDashed())
     {
         UI.OpenOrClose(UI.speechBubble);
         UI.speechBubble_Obj.Say(dialog.myLines[4]);
     }
     else if (UI.speechBubble_Obj.lineIndex == 5 && team.players[1].GetComponent <PlayerMovementController>().HasDashed())
     {
         team.players[0].GetComponent <Movement>().ToggleFrozen(false);
         team.players[1].GetComponent <Movement>().ToggleFrozen(false);
         UI.OpenOrClose(UI.speechBubble);
         UI.speechBubble_Obj.Say(dialog, 4);
         return(false);
     }
     return(true);
 }