Пример #1
0
    public void StartDialog(DialogText dialog)
    {
        dialogIsInitiated = true;
        player.GetComponent <PlayerMovement>().DisableControl();
        currentDialog = dialog;
        GameObject currentDialogObject = Instantiate(dialogPrefab, mainCanvas.transform);

        currentTextDisplayer = currentDialogObject.GetComponent <DialogTextDisplayer>();
        currentTextDisplayer.SetDialogText(currentDialog.GetDialogText());
    }
Пример #2
0
 public void ProcessInput()
 {
     if (ShouldProcessInput())
     {
         actionAxisInUSe = true;
         if (currentDialog.IsNextDialog())
         {
             currentDialog = currentDialog.GetNextDialog();
             currentDialogDisplayer.SetDialogText(currentDialog.GetDialogText());
         }
     }
 }
Пример #3
0
 public void ProcessInput()
 {
     if (ShouldProcessInput())
     {
         actionAxisInUse = true;
         if (currentDialog.IsNextDialog())
         {
             currentDialog = currentDialog.GetNextDialog();
             currentTextDisplayer.SetDialogText(currentDialog.GetDialogText());
         }
         else
         {
             EndDialog();
         }
     }
     ValidateAxisInUse();
 }
Пример #4
0
 private void ProcessInput()
 {
     if (ShouldProcessInput())
     {
         actionAxisInUser = true;
         if (currentDialog.IsNextDialog())
         {
             currentDialog = currentDialog.GetNextDialog();
             currentDialogDisplayer.SetDialogText(currentDialog.GetDialogText());
         }
         else
         {
             EndDialog();
         }
     }
     ValidAxisInUser();
 }