Esempio n. 1
0
        public void ShowNext()
        {
            var isNext = Dialog.TryGetNextDialog(TargetTextArea.LocalizationKey, out var next);

            if (isNext)
            {
                TargetTextArea.SetContentFromLocalization(next);
            }

            if (AutoNext && isNext)
            {
                Invoke(nameof(ShowNext), Delay);
            }

            if (Dialog.IsLastDialog(TargetTextArea.LocalizationKey))
            {
                DialogFinished.Invoke();
            }
        }