Esempio n. 1
0
        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);
        }
Esempio n. 3
0
        /// <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);
                }
            }
        }