/// <summary> /// Gets the next dialog für den PC vom NPC. /// </summary> public void GetNextDialog() { GameObject scripts = GameObject.Find("Scripts"); DialogDisplayManager dialogDisplay = scripts.GetComponent <DialogDisplayManager>(); dialogDisplay.DisplayNextDialog(populateDialog as PopulateVerticalToggle); }
public bool SetActiveDialogView() { if (dialogView.activeSelf == false) { dialogView.SetActive(true); var npcDialogManager = npcTalkPartner.GetComponent <NPCDialogManager>(); List <string> standardInfos = npcDialogManager.GetStandardInfo(); DialogDisplayManager.DisplayDialogText(standardInfos, populateDialog); } return(true); }
/// <summary> /// Activates the dialog window in GameScene with Standardinfo /// </summary> /// <param name="activate">If set to <c>true</c> activate.</param> public bool SetActiveDialogView() { dialogView.SetActive(true); var artifactDialogManager = GetComponent <ArtifactDialogManager>(); var dialogString = artifactDialogManager.GetNextInfos(); if (dialogString == null || dialogString.Count == 0) { dialogString = artifactDialogManager.GetStandardInfo(); } DialogDisplayManager.DisplayDialogText(dialogString, populateDialog); return(true); }
/// <summary> /// Shows the next. /// </summary> /// <param name="playerDialogManager">Player dialog manager.</param> /// <param name="populateDialog">Populate dialog.</param> private void ShowNext(PlayerDialogManager playerDialogManager, PopulateVerticalToggle populateDialog) { List <string> dialogRows = playerDialogManager.GetNextDialogPackageFromNPC(); if (dialogRows != null && dialogRows.Count > 0) { if (nextIsOption) { DialogDisplayManager.DisplayDialogOption(dialogRows, populateDialog); } else { DialogDisplayManager.DisplayDialogText(dialogRows, populateDialog); } } }