public void StartDialog(DialogSeries dialogSeries)
        {
            if (dialogList)
            {
                Debug.LogError("Dialog start requested, but already showing another one");
                return;
            }

            dialogList   = dialogSeries;
            dialogLength = dialogList.dialogItems.Length;
            index        = 0;
            skipTutorial.SetActive(dialogList.isTutorial);
            onDialogStart.Invoke(dialogList);
            ShowDialog("StartDialog");
        }
示例#2
0
 public void PlayDialog(DialogSeries dialogList)
 {
     dialogPresenter.gameObject.SetActive(true);
     dialogPresenter.StartDialog(dialogList);
 }
 public void FinishDialog()
 {
     onDialogEnd.Invoke(dialogList);
     dialogList = null;
 }