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()); }
public void ProcessInput() { if (ShouldProcessInput()) { actionAxisInUSe = true; if (currentDialog.IsNextDialog()) { currentDialog = currentDialog.GetNextDialog(); currentDialogDisplayer.SetDialogText(currentDialog.GetDialogText()); } } }
public void ProcessInput() { if (ShouldProcessInput()) { actionAxisInUse = true; if (currentDialog.IsNextDialog()) { currentDialog = currentDialog.GetNextDialog(); currentTextDisplayer.SetDialogText(currentDialog.GetDialogText()); } else { EndDialog(); } } ValidateAxisInUse(); }
private void ProcessInput() { if (ShouldProcessInput()) { actionAxisInUser = true; if (currentDialog.IsNextDialog()) { currentDialog = currentDialog.GetNextDialog(); currentDialogDisplayer.SetDialogText(currentDialog.GetDialogText()); } else { EndDialog(); } } ValidAxisInUser(); }